Skip to content

ci: support Claude Code OAuth review auth#38

Merged
MapleEve merged 1 commit into
mainfrom
fix/claude-oauth-review
Jun 9, 2026
Merged

ci: support Claude Code OAuth review auth#38
MapleEve merged 1 commit into
mainfrom
fix/claude-oauth-review

Conversation

@MapleEve

@MapleEve MapleEve commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Prefer CLAUDE_CODE_OAUTH_TOKEN for Claude Code Review when configured.
  • Fall back to the existing ANTHROPIC_API_KEY + ANTHROPIC_BASE_URL path when OAuth is not configured.
  • Keep custom ANTHROPIC_BASE_URL scoped to the API-key fallback so OAuth does not inherit the proxy endpoint.

Validation

  • ruby -e 'require "yaml"; YAML.load_file(".github/workflows/claude-code-review.yml"); puts "yaml ok"'\n- python /Users/maple/.codex/skills/voscript-api/scripts/public_release_scan.py --root /Users/maple/Documents/GitHub/.worktrees/voscript-fix-claude-oauth-review\n\n## Note\nThis PR changes the Claude review workflow itself, so the workflow self-change guard is expected to skip Claude review for this PR. Future non-workflow PRs can use the OAuth path once CLAUDE_CODE_OAUTH_TOKEN is configured.

Copilot AI review requested due to automatic review settings June 9, 2026 15:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Claude Code Review GitHub Actions workflow to support authenticating via Claude Code OAuth when available, while retaining the existing API-key + base-URL fallback without letting OAuth inherit any custom proxy base URL.

Changes:

  • Add secret-presence flags (HAS_*) and update step gating to allow either OAuth or API-key auth.
  • Split the review execution into two paths: “with OAuth” vs “with API key”, scoping ANTHROPIC_BASE_URL only to the API-key fallback.
  • Keep the “self-change” guard so the workflow won’t review PRs that modify the workflow itself.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

) &&
steps.claude-workflow-change.outputs.self_changed != 'true'
}}
uses: actions/checkout@v6
@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.22%. Comparing base (8b41265) to head (512dd6b).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #38   +/-   ##
=======================================
  Coverage   91.22%   91.22%           
=======================================
  Files          81       81           
  Lines        3464     3464           
=======================================
  Hits         3160     3160           
  Misses        304      304           
Flag Coverage Δ
unit 91.22% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@MapleEve MapleEve merged commit b50d53d into main Jun 9, 2026
10 of 11 checks passed
@MapleEve MapleEve deleted the fix/claude-oauth-review branch June 9, 2026 15:54
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.

2 participants