Security scan
The Security scan runs 7 pinned scanning tools on the pull request and posts what they find in its own comment. No language model is involved. It is an option of each repository, and the repository owner can turn it off.
The tools
These are the versions of the current engine; each scan comment names the versions that ran. Every tool is a fixed release whose download is verified by its checksum.
- gitleaks 8.30.1
- secrets such as tokens, keys and passwords in the commits of the pull request
- trufflehog 3.100.1
- credential candidates in file changes introduced by pull request commits, with provider verification where supported
- opengrep 2.1.0
- insecure code patterns in the changed files, with the pinned opengrep rules
- bandit 1.9.4
- insecure Python in the changed .py files
- osv-scanner 2.7.1
- known vulnerabilities in the package versions that the changed lockfiles introduce
- trivy 0.77.0
- high and critical misconfigurations in the changed Dockerfiles and Terraform files
- zizmor 1.33.1
- insecure GitHub Actions workflows and action definitions, Dependabot and pre-commit configuration among the changed files
opengrep uses the opengrep-rules pack at commit f1d2b562. bandit is a Python package that uv 0.13.12 installs from hash-pinned requirements.
What is scanned
The scan looks only at the pull request: its commits, its changed files and its changed lockfiles. opengrep, bandit, osv-scanner, Trivy and zizmor compare findings against the base of the pull request and omit matches. gitleaks looks for secrets in the commits introduced by the pull request. The comment says how many commits and changed files it covered.
Changed Dockerfiles and Terraform files are checked for misconfigurations of high and critical severity. A Terraform file that could make the scanner download a module is listed as not scanned. Changed GitHub Actions workflows and action definitions are audited offline by zizmor, which ignores any zizmor.yml in the repository. Kubernetes manifests and CloudFormation templates are not scanned in this release.
To find known vulnerabilities, the scan sends package names and versions from changed lockfiles to Google's OSV service. See the privacy policy.
TruffleHog checks the full contents of each file version added or changed in the pull request’s commits, not just the changed lines. It can report a credential that was already in a changed file, or one removed by a later commit. It skips binaries and archives. To verify candidates, TruffleHog sends discovered credential material to the relevant provider APIs where supported. The scan comment names the detector and its verification result, never the credential value.
- verified
- The provider confirmed the credential was valid when checked.
- unverified
- The candidate was not confirmed as a valid credential.
- unknown
- A verification error prevented a result.
Each finding names the place, the rule, why it matters and what to change. Scan findings have no P0 to P3 level and no verdict.
What each scanner did
After the findings, the comment has a Tools table with one row for each of the 7 scanners, so you see which of them checked the pull request.
- completed
- The scanner ran. The row gives its number of findings. A file that it could not check is listed under "Not scanned", also when that is every file it was given.
- failed
- The scanner could not be prepared, crashed or ran out of time. The row gives the reason. It reported nothing, so the pull request is not checked by it. TruffleHog also fails, as trufflehog incomplete with the limit it reached, when the pull request has more commits, files or bytes than it checks.
- not run
- The pull request changed no file of the kind this scanner checks, or every such file is listed under "Not scanned". opengrep and bandit never check test files or files under .venv, and those files are not listed, so a pull request that changes only such files shows them as not run.
One scanner that fails does not stop the scan: the findings of the other scanners stay in the comment, and the summary line at the top of the comment says how many scanners failed. The scanners run two at a time.
New suppressions
The comment also lists the suppressions the pull request adds, so a reader sees what was silenced: added lines with nosec, nosemgrep, gitleaks:allow, trivy:ignore, tfsec:ignore or zizmor: ignore[...], and changes to .gitleaksignore, .trivyignore, osv-scanner.toml or .semgrepignore.
Free and best effort
The scan never charges, whatever it finds. It is included with the complete review and adds no fee, even though it posts its own comment. Scan findings never change what a review costs. The scan is separate from the AI Security review.
It never fails a review: when a scanner fails, the Tools table of the scan comment names it, and the Standard and Security reviews still decide the result. See how review charges work.
Turning it off
The scan is an option of each repository. The repository owner turns it off, or on again, in the repositories table of the account dashboard, next to the review type. An account default applies to repositories added later. The change applies to the next review, never to one already running.
Scanning a whole repository
The Security scan of pull requests checks only what a pull request adds. A repository scan is a separate scan that you start by hand, without a pull request. It checks one whole private repository with the same 7 tools.
Account owners and organization admins start it on the dashboard: open the account and choose Security scans. The open-source plan does not include repository scans.
- How it starts
- You choose a repository and see the commit of its default branch before you pay. The scan starts only when you press Scan repository, and it reads exactly that commit.
- What it checks
- The current files for insecure code, vulnerable dependencies, infrastructure misconfigurations and secrets, and the whole Git history of that commit for secrets.
- Where the result is
- In a private report on the dashboard, not in a comment. Only the account owner and its organization admins see it. It can be downloaded as JSON and is deleted after 30 days.
- What it costs
- It is a paid scan, charged for each scan that returns results, with or without findings. A scan that stops before any tool runs is not charged.
See Repository security scans for the price, the tools, the limits, what is left out and when a scan is charged.