Scan specific namespace trivy
Scan workloads only in a specific namespace
trivy k8s --namespace production --report summary all
more trivy
all 15 commands →
Scan Helm chart
trivy config ./my-chart
Scan with JSON output
trivy image --format json -o results.json img:tag
Scan IaC directory
trivy config --severity MEDIUM,HIGH,CRITICAL ./terraform
Ignore unfixed CVEs
trivy image --ignore-unfixed --severity HIGH,CRITICAL img:tag
Update vulnerability DB
trivy image --download-db-only