lhotari/Sandboxed Trivy

Scans container images for vulnerabilities with Trivy running inside a sandboxed Docker container

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Apr 14, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: lhotari/sandboxed-trivy-action@f01374b6cc3bf7264ab238293e94f6db7ada6dd0 # v1.0.2

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

namedescriptionrequireddefault
scan-typeScan type to use for scanning vulnerabilitynoimage
scan-refScan reference (image name or tar file for image scans, path for fs/config scans, URL for repo scans). Required unless trivy-config is provided.no""
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""
trivy-configpath to trivy.yaml configno
limit-severities-for-sariflimit severities for SARIF formatno
trivy-imageDocker image to use for running Trivynoaquasec/trivy:0.69.3@sha256:bcc376de8d77cfe086a917230e818dc9f8528e3c852f7b1aff648949b6258d1c
docker-tar-dirDirectory for storing docker save tar files (for image scans). Uses a temp directory if empty.no""
trivy-envNewline-separated list of NAME=VALUE pairs for additional Trivy environment variables to pass into the sandboxed containerno""
cacheUsed to specify whether caching is needed. Set to false, if you would like to disable caching.notrue

no outputs