Fix Claude OAuth token env for Actions - #25
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughAdded an ChangesWorkflow OAuth Token Configuration
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested labels: ci, github-actions Suggested reviewers: none Poem: ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThis PR updates the Claude review workflow token wiring. The main changes are:
Confidence Score: 5/5This looks safe to merge after confirming the action requires the token in the step environment.
|
| Filename | Overview |
|---|---|
| .github/workflows/claude-code-review.yml | Adds the Claude OAuth token to the action step environment while keeping the existing action input. |
Reviews (1): Last reviewed commit: "Fix Claude OAuth token env for Actions: ..." | Re-trigger Greptile
| id: claude-review | ||
| uses: anthropics/claude-code-action@v1 | ||
| env: | ||
| CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} |
There was a problem hiding this comment.
Secret Enters Tool Environment
Setting CLAUDE_CODE_OAUTH_TOKEN as step env makes the OAuth token available to every process the Claude action starts, including the allowed gh subprocesses. In a pull_request workflow that reads PR-controlled text, a prompt-injection or tool-argument escape can turn this from an action input into a process environment secret that can be posted back to the PR.
Summary
CLAUDE_CODE_OAUTH_TOKENthrough the Claude action stepenvas well as the existingwith:input@claudeworkflowsWhy
anthropics/claude-code-action@v1can 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
Summary by CodeRabbit