The scan target and scanner are separate choices
Trivy distinguishes targets such as images, filesystems, repositories and Kubernetes from scanners such as known-vulnerability, secret and configuration checks. Not every scanner is active for every target or invocation. A clean image scan is not proof that the running application, business logic and cloud account are safe.
Start with the artifact actually being released: pin an image digest or repository revision, record the Trivy version and enabled scanners, and capture vulnerability database freshness. Otherwise a changed result may reflect a new advisory database rather than a changed application. Scanning a mutable tag does not establish what was deployed yesterday.
Build a release rule that can fail visibly
In a disposable test repository, scan an owned image and review one package finding with its installed version, advisory source, fixed-version status and affected layer. Ask who owns the fix and whether a base-image or application dependency update is appropriate. Re-scan the replacement artifact and preserve both reports. No scan or remediation test was executed for this article.
The filtering documentation covers severity selection; the exit-code documentation explains findings-based failure. Finding vulnerabilities is not automatically the same as failing a build. Ask Codex or Claude to demonstrate separately a policy violation, a successful scan and a scanner/database failure. A network error must not silently become 'no vulnerabilities'. Keep exceptions narrow, documented and time-limited; suppressing every unfixed advisory can hide a risk that still needs mitigation.
The vulnerability documentation explains detection coverage and vendor advisory handling. Package names or upstream version strings alone can be misleading when distributions backport fixes. Conversely, a missing advisory or unsupported dependency may produce no finding despite risk.
Keep the report and runner within scope
Use least-privilege CI credentials and pin the scanner/action source according to your organization's release-verification process. Reports can expose package inventories and secret material; do not publish raw logs to demonstrate success. SBOM generation provides an inventory, not a security verdict. The Apache-2.0 code license permits reuse subject to its notice conditions, separate from database, registry and scanned-artifact terms.
Compare adjacent tools on the same artifact
Grype focuses on vulnerability matching for artifacts and can fit an inventory/SBOM workflow. Prowler targets cloud security and compliance assessment, a different layer from dependency scanning. Compare coverage, actionable findings and maintenance effort, not raw finding totals or unsupported claims that one tool is universally deeper.