anchore/Anchore Container Scan

Scan docker containers with Grype for vulnerabilities

View on GitHub

Trust Signals

Scorecard Score
Scorecard 6–8scored Jul 6, 2026
Maintenance Recency
Activelast commit Jul 10, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: anchore/scan-action@e1165082ffb1fe366ebaf02d8526e7c4989ea9d2 # v7.4.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
imageThe image to scan. This option is mutually exclusive with "path" and "sbom". no
pathThe path to scan. This option is mutually exclusive with "image" and "sbom".no
sbomThe SBOM file to scan. This option is mutually exclusive with "path" and "image".no
fail-buildSet to false to avoid failing based on severity-cutoff. Default is to fail when severity-cutoff is reached (or surpassed)notrue
output-formatSet the output parameter after successful action execution. Valid choices are "json", "sarif", "cyclonedx", "cyclonedx-json" and "table".nosarif
output-fileThe file to output the grype scan results tono
severity-cutoffOptionally specify the minimum vulnerability severity to trigger an "error" level ACS result. Valid choices are "negligible", "low", "medium", "high" and "critical". Any vulnerability with a severity less than this value will lead to a "warning" result. Default is "medium".nomedium
only-fixedSpecify whether to only report vulnerabilities that have a fix available. Default is false.nofalse
add-cpes-if-noneSpecify whether to autogenerate missing CPEs. Default is false.nofalse
by-cveSpecify whether to orient results by CVE rather than GHSA. Default is false.nofalse
grype-versionA specific version of Grype to installno
vexSpecify a list of VEX documents to consider when producing scanning results.no
configSpecify one or more Grype configuration files (newline-separated). Setting this will disable auto-detection of configuration files (e.g. .grype.yaml) - only the specified files will be loaded.no
cache-dbCache the Grype DB in GitHub action cache and restore before checking for updatesno
namedescription
sarifPath to a SARIF report file for the scan
jsonPath to a JSON report file for the scan
cyclonedx-xmlPath to a CycloneDX XML report file for the scan
cyclonedx-jsonPath to a CycloneDX JSON report file for the scan