Step 1 of 3
Scan Terraform and Dockerfile for misconfigurations
This /workspace/infra directory contains a Terraform configuration (infra/main.tf) and a container build (infra/Dockerfile) with multiple security issues.
Run Trivy IaC scanning in offline cache mode (--skip-check-update) to write a JSON report (report.json) and print HIGH and CRITICAL findings:
bash
trivy config --skip-check-update --severity HIGH,CRITICAL --format json -o report.json infra/ && trivy config --skip-check-update --severity HIGH,CRITICAL infra/