How it works
Results on GitHub
The check run, inline review comments and summary comment OpenVScan publishes, and the rule that decides pass, fail or neutral.
How it works
The check run, inline review comments and summary comment OpenVScan publishes, and the rule that decides pass, fail or neutral.
When a review finishes, OpenVScan publishes its results to the pull request in three places: a check run on the head commit, an inline review on the changed lines, and one summary comment. All three are written by the GitHub App, not by a user account.
The conclusion follows one rule.
If the repository's Fail the check on setting is Never, the conclusion is always neutral. Findings are advisory.
Otherwise the review fails when at least one finding meets all three conditions:
false_positive. Secrets Gitleaks matched by their format (an AWS key, a GitHub token, a private key, and so on) and known-malicious packages found by OSV-Scanner are the exception: the agent's verdict is shown, but it cannot take them out of the gate. Gitleaks' generic-api-key rule, which guesses from keywords and randomness and often flags identifiers or config names, is not an exception: the agent can dismiss it after reading the code.If no finding meets all three, the review passes, with one exception: when the only findings that would have failed it are ones the agent dismissed, the review is neutral. The agent reads code from the pull request, so its dismissal alone never turns the check green. The summary comment lists those findings under Dismissed by the AI, would otherwise block.
Findings the agent marked confirmed or needs_review, and findings it was never asked about, all count. In a branch review there is no diff, so the second condition does not apply.
With the default threshold of High:
| Finding | Result |
|---|---|
| High severity, on a changed line | Fail |
High severity, on a changed line, marked false_positive by the agent | Neutral, listed for a person to check |
Low severity, on a changed line, marked false_positive by the agent | Pass |
A Gitleaks secret matched by its format (e.g. aws-access-token) on a changed line, marked false_positive by the agent | Fail |
A Gitleaks generic-api-key match on a changed line, marked false_positive by the agent | Neutral, listed for a person to check |
| Critical severity, in a file the pull request did not touch | Pass, reported as pre-existing |
| Medium severity, on a changed line | Pass, reported as a lower-severity finding |
The check run conclusion on GitHub maps as follows:
| OpenVScan | GitHub check conclusion |
|---|---|
| Pass | success |
| Fail | failure |
| Neutral | neutral |
| Review cancelled | cancelled |
| Review could not complete | neutral |
A failing check does not block merging by itself. To block merges, add OpenVScan Security Review as a required status check in your branch protection rules on GitHub.
OpenVScan creates a check run named OpenVScan Security Review on the head commit as soon as a review starts, with the title "Security review in progress". Its details link opens the review in the dashboard.
When the review completes, the check run gets:
Each counted finding that has a file and line becomes a line annotation, up to 200 per review, most severe first. A counted finding is one the agent did not dismiss and, in a pull request review, that is in the diff.
| Annotation level | Used for |
|---|---|
failure | Findings at or above the fail threshold |
warning | Other findings of medium severity or above |
notice | Low and info findings |
The annotation message includes the finding's description, the agent's reasoning if it gave a verdict, and the fix if one is known.
OpenVScan posts one pull request review per review run, with inline comments on the changed lines. The review is a comment review: it never approves or requests changes.
A finding gets an inline comment when:
Comments are ordered by severity, and a review posts at most 25. A finding that spans several lines gets a multi-line comment when the whole range is commentable. Otherwise the comment goes on the last commentable line in the range.
Each comment shows the severity, the source (a scanner or the AI review), the title and description, the agent's verdict and reasoning for scanner findings, the fix, and the rule id and CWE. When the agent supplied replacement code for exactly the commented lines, the comment includes a GitHub suggestion block you can commit in one click.
If no finding qualifies, no review is posted. If GitHub rejects the inline comments, the review is posted without them and the run log notes it. The summary comment still lands either way.
Earlier findings are recognized by fingerprint, which ignores line numbers. Pushing a commit that moves code around does not repost the same comments.
Each pull request gets one OpenVScan summary comment. Every new review edits that comment in place instead of adding another. OpenVScan remembers the comment's id, and falls back to looking for a hidden marker, <!-- openvscan:summary -->, on comments posted by a GitHub App. If neither is found, for example because someone deleted the comment, it posts a new one.
The comment contains:
Branch reviews post only the check run, since there is no pull request to comment on.
Scanner output and agent output both come from code an attacker can control. Before any of it is posted to GitHub, OpenVScan runs it through a sanitizer that:
@, so text cannot mention and notify GitHub users or teams,[ and ], so text cannot render images or links. GitHub fetches image URLs when a comment is viewed, so an injected image could otherwise send private code to another server,#12, owner/repo#12, GH-12) with a zero-width space, so text cannot link out or create cross-references in other repositories,Inside suggestion blocks, triple backticks are replaced so the code cannot break out of the block. In inline code spans, backticks are replaced with single quotes.