README.md748 B
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.