Commit 96bcd23
committed
fix(ci): add least-privilege permissions to workflow files
Add top-level permissions blocks following the two-tier permission
pattern recommended by OpenSSF Scorecard:
- stale.yml: add `permissions: {}` at workflow level (job already has
issues: write + pull-requests: write)
- build_external_container_images.yaml: move `packages: write` from
workflow level to job level; set workflow level to `permissions: read-all`
scm_configuration_check.yaml already had `permissions: read-all` at
workflow level so no change was needed.
Fixes #2841
Signed-off-by: Vibhav Bobade <vibhav.bobde@gmail.com>1 parent 84e5e54 commit 96bcd23
3 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
0 commit comments