Scan with JSON output
Machine-readable vulnerability scan results
trivy image --format json -o results.json img:tag
- tool
- trivy15 commands
More trivy commands
-
trivy config --severity MEDIUM,HIGH,CRITICAL ./terraformFind misconfigurations in Terraform/Kubernetes/Helm code
-
trivy image --ignore-unfixed --severity HIGH,CRITICAL img:tagSkip vulnerabilities that have no fix available yet
-
trivy image --download-db-onlyPre-download the latest vulnerability database
-
trivy fs .Scan the current directory for vulnerabilities
-
trivy k8s --report summary clusterScan the entire Kubernetes cluster for vulnerabilities and misconfigs