Commit 9743a08
committed
ci: add explicit least-privilege permissions to workflow
CodeQL (actions/missing-workflow-permissions, medium) flagged the
workflow for relying on the repository's default GITHUB_TOKEN scopes,
which can be broader than the workflow needs. Declares
`permissions: contents: read` at the top level (only checkout needs
write — and CI doesn't push). Jobs that need extra scopes (e.g.
PyPI publish with id-token: write) override at the job level.
Part of org-wide CodeQL hygiene sweep — same one-line addition in
cycles-server, cycles-server-admin, cycles-server-events,
cycles-dashboard, cycles-client-python, cycles-spring-boot-starter.1 parent 6729c94 commit 9743a08
2 files changed
Lines changed: 7 additions & 0 deletions
| 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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
0 commit comments