Repository navigation
Commit f2685ff
committed
ci: scope GITHUB_TOKEN to write needs in 5 workflows
CodeQL flagged 5 workflows with no permissions block, so their
GITHUB_TOKEN gets the repo default scope, wider than what each
workflow's push or publish step needs. Add an explicit permissions
block per workflow, matched to its own steps:
- github-actions-cron-update-OR.yml: contents write, pull-requests
write, and issues write (the PR gets a label, which GitHub serves
through the issues API even for a PR).
- github-actions-cron-update-yosys.yml: contents write and
pull-requests write, same PR flow with no label.
- github-actions-manual-update-rules.yml: contents write, for its
direct commit and push.
- github-actions-update-rules.yml: contents write and pull-requests
write, for its two push paths.
- github-actions-publish-docker-images.yml: one top-level block
covering all 3 jobs, contents read and packages write, since all 3
push images to GHCR under the same scope.
No workflow's steps change; this only makes each one's existing
GITHUB_TOKEN use explicit instead of relying on the org default.
Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>1 parent 981bbcf commit f2685ff
5 files changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
0 commit comments