Skip to content

Commit d76ab27

Browse files
thomhurstclaude
andcommitted
fix: move permissions to workflow level for OIDC token access
Move the `permissions:` block from the job level to the workflow level to ensure the OIDC token is available for the claude-code-action. Job-level permissions may not properly propagate the ACTIONS_ID_TOKEN_REQUEST_URL environment variable needed for id-token: write to function correctly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d1fbefc commit d76ab27

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/claude-code-review.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ on:
1010
# - "src/**/*.js"
1111
# - "src/**/*.jsx"
1212

13+
permissions:
14+
contents: read
15+
pull-requests: read
16+
issues: read
17+
id-token: write
18+
1319
jobs:
1420
claude-review:
1521
# Optional: Filter by PR author
@@ -19,11 +25,6 @@ jobs:
1925
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
2026

2127
runs-on: ubuntu-latest
22-
permissions:
23-
contents: read
24-
pull-requests: read
25-
issues: read
26-
id-token: write
2728

2829
steps:
2930
- name: Checkout repository

0 commit comments

Comments
 (0)