ci: pass GITHUB_TOKEN to claude-code-action to bypass OIDC exchange (#629)

This commit is contained in:
Carlos Florêncio
2026-04-17 23:27:49 +01:00
committed by GitHub
parent cd46516cef
commit 1cdfc04050
+5
View File
@@ -41,6 +41,11 @@ jobs:
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
# Skip the Claude GitHub App's OIDC -> installation-token exchange,
# which 401s on pull_request_target from forks. GITHUB_TOKEN inherits
# pull-requests: write from the permissions block above, which is
# enough for the action to post review comments.
github_token: ${{ secrets.GITHUB_TOKEN }}
track_progress: true
allowed_bots: "*"
prompt: |