Skip to content

Commit 8e21372

Browse files
committed
ci(scorecard): scope permissions to contents:read at workflow level
Sonar githubactions:S8234 flagged 'permissions: read-all' as a vulnerability. Job-level permissions already grant exactly what the scorecard analyzer needs (security-events: write for SARIF upload, id-token: write for OIDC publish, contents: read, actions: read); the top-level grant is only a fallback for any future steps without their own block, so contents:read is the right minimum.
1 parent 74f704d commit 8e21372

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/scorecard.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ on:
2727
- cron: "0 3 * * 2"
2828
workflow_dispatch:
2929

30-
permissions: read-all
30+
permissions:
31+
contents: read
3132

3233
jobs:
3334
analysis:

0 commit comments

Comments
 (0)