Commit 31f5b46
authored
ci: restrict GITHUB_TOKEN to contents:read in format and python-code-checks workflows (#457)
Closes CodeQL alerts #1, #3, #4 (format.yaml) and #5, #6
(python-code-checks.yaml) by adding a workflow-level `permissions:
contents: read` block. Neither workflow needs anything beyond checkout.1 parent 51afd81 commit 31f5b46
2 files changed
Lines changed: 6 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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| |||
0 commit comments