Skip to content

Commit df61c5c

Browse files
fix: add github_token to claude-code-action workflows (#1577)
The claude-code-action workflows were failing due to OIDC token exchange issues. The action attempts to authenticate automatically using OIDC, but when this fails it requires an explicit github_token. This commit adds the github_token parameter using secrets.GITHUB_TOKEN to both pr-assignment-check.yml and pr-stale-check.yml workflows. Fixes the "Invalid OIDC token" error: https://github.com/lingodotdev/lingo.dev/actions/runs/19286588549
1 parent 4f54462 commit df61c5c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/pr-assignment-check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- uses: anthropics/claude-code-action@v1
2323
with:
2424
anthropic_api_key: ${{ secrets.CLAUDE_CODE_API_KEY }}
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
2526
prompt: |
2627
EXEMPT USERS: @maxprilutskiy, @vrcprl, @davidturnbull, @monicabe, @sumitsaurabh927, @AleksandrSl (skip all checks if PR author is one of these)
2728

.github/workflows/pr-stale-check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- uses: anthropics/claude-code-action@v1
1818
with:
1919
anthropic_api_key: ${{ secrets.CLAUDE_CODE_API_KEY }}
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
2021
prompt: |
2122
EXEMPT USERS: @maxprilutskiy, @vrcprl, @davidturnbull, @monicabe, @sumitsaurabh927, @AleksandrSl
2223

0 commit comments

Comments
 (0)