Commit 1f43ff7
fix: add top-level permissions to workflows for CKV2_GHA_1
Checkov CKV2_GHA_1 requires top-level permissions to be explicitly
restricted, not just at the job level. Added permissions: {} to
security-scan.yml and permissions: { contents: read } to
azure-bicep-validate.yaml.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 9617cd0 commit 1f43ff7
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
0 commit comments