trivy
Verified for current stable LTS
Trivy Commands
Trivy command syntax with verified terminal examples.
Commands
8 commands for Trivy
trivy Video
Trivy Command: Generate Sarif Report Output
trivy image -f <template> -t "<@sarif.tpl>" -o <path/to/report.sarif> {image:tag} trivy Video
Trivy Command: Scan Docker Image Filter Output By Severity
trivy image -s <HIGH,CRITICAL> {alpine:3.15} trivy Video
Trivy Command: Scan Docker Image For Vulnerabilities
trivy image {image:tag} trivy Video
Trivy Command: Scan Docker Image Ignore Unfixed Vulnerabilities
trivy image --ignore-unfixed {alpine:3.15} trivy Operations
Trivy Command: Scan Filesystem For Vulnerabilities And Misconfigurations
trivy fs --security-checks <vuln,config> <path/to/project_directory> trivy Operations
Trivy Command: Scan Git Repo Up To Specific Commit Hash
trivy repo --commit <commit_hash> <repository> trivy Operations
Trivy Command: Scan Iac Directory For Misconfigurations
trivy config <path/to/iac_directory> trivy Operations
Trivy Command: Scan Local Or Remote Git Repository For Vulnerabilities
trivy repo <path/to/local_repository_directory|remote_repository_URL> Suggest a Trivy Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Trivy workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.