DevSecOps Infra Workflow
End-to-end secure infrastructure pipeline from code to cloud.
View on GitHubA fully automated DevSecOps pipeline that takes infrastructure code from commit to cloud deployment — with security scanning, policy enforcement, and drift detection baked in at every stage.
Built as a reusable GitHub Actions workflow framework on top of Azure and Terraform, so any team can plug in their modules and get a hardened delivery path out of the box.
What's inside
Shift-left security scanning
Checkov and Trivy run on every pull request, flagging misconfigurations and vulnerable images before they ever reach a plan.
Policy as code
Organisation guardrails enforced through OPA policies — naming, tagging, network exposure, and SKU restrictions.
Cost visibility
Infracost posts a cost diff on each PR so reviewers see the monthly impact of an infrastructure change.
Drift detection
Scheduled plans compare live state against code and open an issue automatically when drift is detected.
How it flows
- 01Commit
- 02Lint & Format
- 03Security Scan
- 04Plan & Cost
- 05Approval
- 06Apply
- 07Drift Watch
Tech stack
- Terraform
- Azure Bicep
- GitHub Actions
- Checkov
- Trivy
- Infracost
- Azure
Outcomes
- Zero critical misconfigurations shipped since adoption
- Reusable workflow consumed by multiple teams
- PR review time reduced with automated plan and cost summaries
Next project
AKS Platform Blueprint