Scan Terraform and Kubernetes IaC files with Checkov and output SARIF for GitHub code scanning

domain: checkov.io · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install Checkov via pip: pip install checkov.
  2. Run a Terraform scan against a directory: checkov -d ./infra --framework terraform -o sarif --output-file-path results.sarif.
  3. Run a Kubernetes manifest scan: checkov -d ./k8s --framework kubernetes -o sarif --output-file-path k8s-results.sarif.
  4. Upload the SARIF file to GitHub code scanning via the github/codeql-action/upload-sarif Action in your CI workflow to surface findings in the Security tab.
  5. Suppress known-acceptable findings by adding a skip annotation comment (# checkov:skip=CHECK_ID:reason) directly above the relevant resource block in IaC files.
  6. Integrate into CI by running checkov as part of a pull-request check and failing the pipeline when the exit code is non-zero (findings present).

Known gotchas

Related routes

Scan Terraform files with Checkov and emit SARIF output for GitHub code scanning
checkov.io / github.com/bridgecrewio/checkov · 6 steps · unrated
Integrate OSV-Scanner into a GitHub Actions CI pipeline with SARIF upload
google.github.io · 5 steps · unrated
Scan IaC and container images together using Trivy in a CI pipeline
aquasecurity.github.io/trivy · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans