Commit 13979aa
ci: Minimal permissions for overall-result job (#121)
Potential fix for
[https://github.com/eclipse-score/devcontainer/security/code-scanning/1](https://github.com/eclipse-score/devcontainer/security/code-scanning/1)
Add an explicit `permissions` block to the `overall-result` job in
`.github/workflows/ci.yaml` to restrict `GITHUB_TOKEN` access to least
privilege.
Best fix without changing behavior: set `permissions: {}` for
`overall-result`, since it only evaluates `needs` results and exits with
status codes; it does not require repository/package/ID-token scopes.
Change region: in `.github/workflows/ci.yaml`, inside
`jobs.overall-result`, add the permissions block between `if:` and
`steps:` (or anywhere valid under the job root keys). No imports,
methods, or dependencies are needed.
_Suggested fixes powered by Copilot Autofix. Review carefully before
merging._
Signed-off-by: lurtz <727209+lurtz@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>1 parent 6ef4c57 commit 13979aa
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
0 commit comments