Skip to content

Commit bd48333

Browse files
CopilotbedaHovorka
andcommitted
Fix Claude code review workflow authentication
Add github_token to claude-code-action to fix authentication error. The workflow was failing with "User does not have write access on this repository" because it was trying to use OIDC token exchange without proper GitHub App permissions. Using the standard GITHUB_TOKEN secret resolves this. Co-authored-by: bedaHovorka <5263405+bedaHovorka@users.noreply.github.com>
1 parent c99e1ec commit bd48333

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.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.ANTHROPIC_API_KEY }}
39+
github_token: ${{ secrets.GITHUB_TOKEN }}
3940
prompt: |
4041
REPO: ${{ github.repository }}
4142
PR NUMBER: ${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)