Checkov CI/CD Pipeline Integration
Intermediatev1.0.0
Integrate Checkov into CI/CD pipelines with GitHub Actions — IaC scanning with baseline support, severity gating, SARIF uploads, and compliance reporting.
Content
Overview
Checkov in CI/CD ensures every infrastructure change is validated against security policies before deployment. With baselines, new projects start clean while existing projects adopt incrementally.
How It Works
GitHub Actions Workflow
With Baseline for Existing Projects
Pre-Commit Integration
Best Practices
- -Use
soft_fail_on: LOW,MEDIUMto warn without blocking on minor issues - -Upload SARIF to GitHub Security tab for centralized visibility
- -Use baselines for existing infrastructure to enable incremental adoption
- -Trigger only on IaC file changes (paths filter) to avoid unnecessary runs
- -Include
--download-external-modules truefor complete module scanning - -Run as pre-commit hook for immediate developer feedback
Common Mistakes
- -Not using baselines on existing projects (blocks all PRs immediately)
- -Hard-failing on LOW severity (too strict for adoption)
- -Not uploading SARIF results (loses visibility into security posture)
- -Scanning only Terraform when Dockerfiles and K8s manifests also exist
FAQ
Discussion
Loading comments...