Skip to content

Commit 13979aa

Browse files
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

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292
runs-on: ubuntu-24.04
9393
needs: [build]
9494
if: ${{ !cancelled() }}
95+
permissions: {}
9596
steps:
9697
- name: Successful verification
9798
if: ${{ !(contains(needs.*.result, 'failure')) }}

0 commit comments

Comments
 (0)