Skip to content

Fix Claude OAuth token env for Actions#772

Merged
justin808 merged 2 commits into
masterfrom
jg-codex/claude-oauth-env-fallback
Jul 5, 2026
Merged

Fix Claude OAuth token env for Actions#772
justin808 merged 2 commits into
masterfrom
jg-codex/claude-oauth-env-fallback

Conversation

@justin808

@justin808 justin808 commented Jul 5, 2026

Copy link
Copy Markdown
Member

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

Summary by CodeRabbit

  • Chores
    • Updated GitHub Actions configuration for Claude-related workflows to provide the authentication token in an additional supported way.
    • This helps improve consistency and reliability when running automated Claude tasks.

@coderabbitai

coderabbitai Bot commented Jul 5, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 91ccb287-cf8f-4f6c-9688-f6d60f902d6d

📥 Commits

Reviewing files that changed from the base of the PR and between 102bbaa and aa0e78f.

📒 Files selected for processing (2)
  • .github/workflows/claude-code-review.yml
  • .github/workflows/claude.yml

Walkthrough

Two GitHub Actions workflow files add an env block setting CLAUDE_CODE_OAUTH_TOKEN from repository secrets to the Claude action steps, alongside the existing with.claude_code_oauth_token input.

Changes

Claude workflow OAuth token wiring

Layer / File(s) Summary
Add env-based OAuth token
.github/workflows/claude-code-review.yml, .github/workflows/claude.yml
Adds an env block defining CLAUDE_CODE_OAUTH_TOKEN from secrets.CLAUDE_CODE_OAUTH_TOKEN to each workflow's Claude action step, alongside the existing with input.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested labels: ci, github-actions

Suggested reviewers: none

Poem:
A rabbit hopped through YAML lines so neat,
Adding tokens where secrets and env now meet.
Two workflows now double-carry the key,
Claude's actions run smooth as can be.
Hop, commit, review — done with glee! 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the workflow-only fix to add the Claude OAuth token to the GitHub Actions environment.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jg-codex/claude-oauth-env-fallback

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@justin808
justin808 merged commit d12a7a2 into master Jul 5, 2026
1 of 8 checks passed
@justin808
justin808 deleted the jg-codex/claude-oauth-env-fallback branch July 5, 2026 04:57
@greptile-apps

greptile-apps Bot commented Jul 5, 2026

Copy link
Copy Markdown

Greptile Summary

This PR updates the Claude GitHub Actions token wiring. The main changes are:

  • Adds CLAUDE_CODE_OAUTH_TOKEN to the Claude review action step environment.
  • Adds the same environment variable to the interactive @claude workflow action step.
  • Keeps the existing claude_code_oauth_token action input in both workflows.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
.github/workflows/claude-code-review.yml Adds the Claude OAuth token as step-level environment for the Claude review action while keeping the existing input.
.github/workflows/claude.yml Adds the same Claude OAuth token environment variable to the interactive Claude action step.

Reviews (1): Last reviewed commit: "Fix Claude OAuth token env for Actions: ..." | Re-trigger Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant