Skip to content

Commit da5facc

Browse files
pomfridaclaude
andauthored
fix(github): add missing contents: read permission to publish workflows (#4485)
The `_setup.yml` reusable workflow requires `contents: read`, but the publish workflows only declared `id-token: write`, which implicitly set all other permissions to `none`. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 123602d commit da5facc

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/publish_core_react.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020
- production
2121
default: 'development'
2222
permissions:
23+
contents: read
2324
id-token: write
2425
env:
2526
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/publish_storybook.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
- 'packages/eds-tokens/**'
1919
- 'packages/eds-icons/**'
2020
permissions:
21+
contents: read
2122
id-token: write
2223
env:
2324
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)