Skip to content

Commit 29f855a

Browse files
authored
Fix Claude OAuth token env for Actions (#1202)
## Summary - pass `CLAUDE_CODE_OAUTH_TOKEN` through the Claude action step `env` as well as the existing `with:` input - keep OAuth token wiring consistent for Claude review and `@claude` workflows ## Why `anthropics/claude-code-action@v1` can resolve the OAuth input empty in this runner path unless the token is also available in the inherited step env. This matches the Hichee fix proven by shakacode/hichee#9633. ## Verification - workflow-only YAML patch generated from the org Claude integration audit <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated the automated workflow setup to pass the Claude Code OAuth token in an additional supported way. * No changes to workflow triggers, job behavior, or user-facing app features. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 9b56482 commit 29f855a

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
- name: Run Claude Code Review
2828
id: claude-review
2929
uses: anthropics/claude-code-action@v1
30+
env:
31+
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
3032
with:
3133
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
3234
prompt: |

.github/workflows/claude.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
- name: Run Claude Code
3636
id: claude
3737
uses: anthropics/claude-code-action@v1
38+
env:
39+
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
3840
with:
3941
github_token: ${{ github.token }}
4042
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}

0 commit comments

Comments
 (0)