| name | trivy |
| description | Security vulnerability scanner for containers and code. Use when auditing a repository for known CVEs, security issues in dependencies, or supply-chain risks. Supports Python, Go, Node.js, Docker images, and more. |
trivy — Vulnerability Scanner
Quick Scan
trivy fs .
trivy image <image-name>
trivy repo --repo-ref https://github.com/owner/repo
Common Options
trivy fs . --format table
trivy fs . --format json
trivy fs . --format cyclonedx
trivy fs . --severity HIGH,CRITICAL
trivy fs . --security-checks vuln,config,secret
When to Use
- Initial security audit of a repository
- Check for known CVEs in dependencies (Python pip, Go mod, npm, etc.)
- Scan Dockerfiles and container images
- Generate a security report as part of
issues.json
Examples
trivy fs . --security-checks vuln,config,secret
trivy fs . --security-checks vuln --severity HIGH,CRITICAL
trivy fs ./src --format json -o scan.json