Skip to main content
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.

Hooks
cloudposse / atmos

Try it out

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
hooks-checkov
 
Recorded from this example
Real commands. Real output.
README.md1.0 KB
View on GitHub

hooks-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: checkov with zero configuration — the kind's defaults supply the binary name, args, failure mode, and SARIF result handler.
  • Same SARIF parser as trivy and kics — one body, every consumer.

Requirements

  • tofu on PATH.
  • checkov on 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.