Commit 8706bc2
committed
ci(opa): migrate to setup-opa action, pin runner and OPA version
- Replace manual wget + chmod install with the official
open-policy-agent/setup-opa@v2.2.0 action (checksum-verified,
cached, no hardcoded download URL)
- Bump OPA from v0.43.0 to v1.6.0 (static binary, matching prior
behavior via `static: true`)
- Upgrade actions/checkout from v2 to v7
- Pin runner to ubuntu-24.04 instead of floating ubuntu-latest
- Add contents:read permissions and PR concurrency cancellation
- Scope trigger to argocd-helm-charts/gatekeeper/policies/** via
paths filter, add reopened to trigger types
- Remove dead `if: github.event_name == 'pull_request'` condition
(job already only runs on pull_request)
Note: OPA v1.x defaults to Rego v1 syntax, a breaking change from
the v0.43.0 baseline. Verify `opa test` passes against existing
.rego policies before merging; if failures are syntax-related
rather than genuine test failures, policies may need migration to
v1 Rego syntax or a temporary --v0-compatible flag.1 parent ac56822 commit 8706bc2
2 files changed
Lines changed: 26 additions & 14 deletions
File tree
- .github/workflows
- argocd-helm-charts/gatekeeper/policies
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
8 | 20 | | |
9 | 21 | | |
10 | | - | |
11 | | - | |
| 22 | + | |
| 23 | + | |
12 | 24 | | |
13 | 25 | | |
14 | | - | |
15 | | - | |
| 26 | + | |
| 27 | + | |
16 | 28 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
21 | 34 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 35 | + | |
| 36 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
0 commit comments