Commit 52a89a3
authored
ci: add missing top level contents permission (#779)
### Description
Two workflows in this repo were missing a top-level `permissions:
contents: read` block:
- `.github/workflows/manual_release_docs.yaml`
- `.github/workflows/on_issue.yaml`
The other workflows here, as well as the equivalents in
`apify-sdk-python` and `crawlee-python`, all set this default at the
file level. This applies the principle of least privilege: jobs that
need to escalate (e.g. `contents: write`, `pages: write`, `issues:
write`) still do so via job-level overrides.
### Changes
- Add `permissions: contents: read` at the top level of both workflow
files.1 parent abb8ce7 commit 52a89a3
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
0 commit comments