EXAMPLE
Checkov Hook
Demonstrates the checkov hook kind: an after.terraform.plan hook that runs checkov against the component and renders a SARIF findings summary in the terminal.
Try it out
- Install Atmos
- Try the example
Copy the example into a new directory and make it your own:
atmos init examples/hooks-checkov
cd hooks-checkov
Follow the README for prerequisites and next steps.
See it in action
RECORDED DEMO Real commands. Real output.
README.md1.0 KB
View on GitHubhooks-checkov
Demonstrates the checkov hook kind: an after.terraform.plan hook
that runs checkov against the component and renders a SARIF findings
summary in the terminal.
What this shows
kind: checkovwith zero configuration — the kind's defaults supply the binary name, args, failure mode, and SARIF result handler.- Same SARIF parser as
trivyandkics— one body, every consumer.
Requirements
tofuon PATH.checkovon PATH (e.g.,atmos toolchain install checkov).- No AWS credentials needed — checkov parses HCL directly.
Run
atmos terraform plan bucket -s test
Expected: checkov runs before plan and flags issues on the misconfigured S3 bucket and security group.