Skip to content

Commit 4b6656c

Browse files
committed
fix(ci): claude workflows use explicit github token
OIDC token fetch fails with "Unable to get ACTIONS_ID_TOKEN_REQUEST_URL" despite id-token: write permission being set. This occurs when OIDC is disabled at the organization or repository level. Using explicit github_token parameter bypasses OIDC and uses the built-in GITHUB_TOKEN secret that's automatically available to all workflows.
1 parent e35caab commit 4b6656c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
uses: anthropics/claude-code-action@v1
3737
with:
3838
anthropic_api_key: ${{ secrets.CLAUDE_LOFT_GH_APP_KEY }}
39+
github_token: ${{ secrets.GITHUB_TOKEN }}
3940
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
4041
plugins: 'code-review@claude-code-plugins'
4142
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'

.github/workflows/claude.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
uses: anthropics/claude-code-action@v1
3636
with:
3737
anthropic_api_key: ${{ secrets.CLAUDE_LOFT_GH_APP_KEY }}
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
3839

3940
# This is an optional setting that allows Claude to read CI results on PRs
4041
additional_permissions: |

0 commit comments

Comments
 (0)