Commit e9e787a
committed
Add policy checks job to GitHub Actions workflow
Integrates OPA policy enforcement into the CI/CD pipeline:
- Adds policy-checks job that runs in parallel with fmt and execute jobs
- Uses overmindtech/policy-signals-action@v1 for automated policy enforcement
- Generates Terraform plan JSON specifically for policy evaluation
- Runs on all pull request events (opened, synchronize, reopened)
- Posts policy violation results as PR comments
The policy checks will now automatically validate:
- Security group configurations (SSH/RDP exposure)
- S3 security settings (encryption, tags, public access)
- Cost control measures (expensive instances, required tags)
Policy violations will be reported as failures in the GitHub Actions run
and detailed results will be posted as pull request comments.1 parent d667c4f commit e9e787a
1 file changed
+28
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
19 | 47 | | |
20 | 48 | | |
21 | 49 | | |
| |||
0 commit comments