thadiust/Trivy scan (repo or image)

Run Trivy filesystem and/or config on a checkout, or scan a container image already in the local Docker daemon; counts findings and optionally writes SARIF

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
scan_kindfilesystem = trivy fs/config on paths under working_directory; image = trivy image IMAGE_REF (Docker daemon must have the image loaded)nofilesystem
image_refDocker image reference to scan when scan_kind is image (e.g. workflow-python-ci:scan)no""
trivy_versionExact Trivy release version (no v prefix); must exist on aquasecurity/trivy releasesno0.69.3
working_directoryDirectory to scan (repo root relative)no.
modeWhich scans to run: fs, config, or bothnoboth
pathsSpace-separated paths to scan (relative to working_directory)no.
severityComma-separated severities to include (UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL)noHIGH,CRITICAL
ignore_unfixedIf true, ignore vulnerabilities without a fixnotrue
fail_on_findingsFail the action when one or more findings are reportednotrue
write_sarifWrite a SARIF 2.1 report to sarif_filename (for GitHub Code Scanning upload)nofalse
sarif_filenameSARIF file path relative to working_directory (used when write_sarif is true)notrivy-results.sarif
namedescription
finding_countTotal number of findings (vulnerabilities + misconfigurations + secrets, depending on scan mode)
scan_statusFinal scan status (clean, findings_found, scanner_error)
sarif_pathRepo-relative path to the SARIF report when write_sarif is true (empty otherwise)