aquasecurity/Aqua Security Trivy

Scans container images for vulnerabilities with Trivy

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 2, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0

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

namedescriptionrequireddefault
scan-typeScan type to use for scanning vulnerabilitynoimage
image-refimage reference (for backward compatibility)no
inputreference of tar file to scanno""
scan-refScan referenceno.
exit-codeexit code when vulnerabilities were foundno
ignore-unfixedignore unfixed vulnerabilitiesnofalse
vuln-typecomma-separated list of vulnerability types (os,library)noos,library
severityseverities of vulnerabilities to be displayednoUNKNOWN,LOW,MEDIUM,HIGH,CRITICAL
formatoutput format (table, json, template)notable
templateuse an existing template for rendering output (@/contrib/gitlab.tpl, @/contrib/junit.tpl, @/contrib/html.tpl)no""
outputwrites results to a file with the specified file nameno""
skip-dirscomma separated list of directories where traversal is skippedno""
skip-filescomma separated list of files to be skippedno""
cache-dirspecify where the cache is storedno${{ github.workspace }}/.cache/trivy
timeouttimeout (default 5m0s)no""
ignore-policyfilter vulnerabilities with OPA rego languageno""
hide-progresssuppress progress bar and log outputno
list-all-pkgsoutput all packages regardless of vulnerabilitynofalse
scannerscomma-separated list of what security issues to detectno""
trivyignorescomma-separated list of relative paths within the repository to one or more .trivyignore files, or a single .trivyignore.yaml file.no""
github-patGitHub Personal Access Token (PAT) for submitting SBOM to GitHub Dependency Snapshot APIno
trivy-configpath to trivy.yaml configno
tf-varspath to terraform tfvars fileno
limit-severities-for-sariflimit severities for SARIF formatno
docker-hostunix domain socket path to use for docker scanning, ex. unix:///var/run/docker.sockno
versionTrivy version to usenov0.72.0
cacheUsed to specify whether caching is needed. Set to false, if you would like to disable caching.notrue
skip-setup-trivyskip calling the setup-trivy action to install trivynofalse
token-setup-trivy`token-setup-trivy` is required when `github.token` in invalid for `https://github.com` server. See https://github.com/aquasecurity/setup-trivy/?tab=readme-ov-file#install-trivy-with-non-default-token for more details. `token-setup-trivy` is only used to fetch the Trivy repository in `setup-trivy` no${{ github.token }}

no outputs