What does Trivy offer for Terraform?
BeginnerProductionTesting and Policy as Code
Answer
trivy config . scans Terraform (and Kubernetes, Dockerfiles) for misconfigurations using the former tfsec rules and Rego-based checks, outputs SARIF for GitHub code scanning and supports --ignorefile. It can evaluate variables and modules but, as with any static scan, plan JSON gives the most accurate results.
More on Testing and Policy as Code
How do you test infrastructure code, and what does the testing pyramid look like?BeginnerWhat does the static-analysis layer catch?BeginnerWhat does tflint do, and how is it configured?BeginnerHow do Checkov and Trivy differ?IntermediateHow does `terraform test` work?BeginnerHow do mock providers work in `terraform test`?Advanced