Skip to content

ci: switch Claude workflows to OAuth token auth (LAC-3035) - #482

Merged
lacymorrow merged 1 commit into
mainfrom
LAC-3035-claude-review-oauth
Jul 23, 2026
Merged

ci: switch Claude workflows to OAuth token auth (LAC-3035)#482
lacymorrow merged 1 commit into
mainfrom
LAC-3035-claude-review-oauth

Conversation

@lacymorrow

Copy link
Copy Markdown
Owner

Problem

The claude-review action fails on every PR with "Credit balance is too low" — the ANTHROPIC_API_KEY used by .github/workflows/claude-code-review.yml has no API credits (seen on #478, runs 30026314984 / 30026364023). With Gemini Code Assist sunset, juno currently has zero automated AI review.

Separately, claude.yml (the @claude mention assistant) uses the unmaintained grll/claude-code-action fork with CLAUDE_ACCESS_TOKEN/CLAUDE_REFRESH_TOKEN/CLAUDE_EXPIRES_AT secrets last updated Aug 2025 — long expired, so it is silently broken too.

Fix

Move both workflows to the official anthropics/claude-code-action@v1 authenticated with claude_code_oauth_token (Claude Max subscription, no per-token billing):

  • claude-code-review.yml: @beta@v1, anthropic_api_keyclaude_code_oauth_token, deprecated direct_promptprompt, allowlist gh pr comment/diff/view tools + inline comments.
  • claude.yml: grll fork → official @v1; one static secret replaces the three rotating OAuth secrets.

Required before this works

A repo secret must be added (only Lacy can mint it):

claude setup-token   # prints a long-lived sk-ant-oat... token
gh secret set CLAUDE_CODE_OAUTH_TOKEN -R lacymorrow/juno

Until the secret exists, the review job will fail fast with a missing-token error — no worse than today's credit-balance failure.

Closes LAC-3035.

- claude-code-review.yml: anthropics/claude-code-action beta -> v1,
  ANTHROPIC_API_KEY (out of credits) -> CLAUDE_CODE_OAUTH_TOKEN
- claude.yml: replace unmaintained grll/claude-code-action fork with
  official v1 action; drop expired access/refresh/expires token secrets

Requires repo secret CLAUDE_CODE_OAUTH_TOKEN from 'claude setup-token'.
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@lacymorrow
lacymorrow merged commit 9c3ec00 into main Jul 23, 2026
4 checks passed
@lacymorrow
lacymorrow deleted the LAC-3035-claude-review-oauth branch July 23, 2026 22:06
lacymorrow added a commit that referenced this pull request Jul 23, 2026
…et (LAC-3035) (#484)

The claude-code-action fails env validation on every PR because the
CLAUDE_CODE_OAUTH_TOKEN repo secret was never created after the OAuth
migration (#482). Guard the steps so the jobs skip with a notice
annotation instead of failing, until the secret exists.

Co-authored-by: Paperclip <noreply@paperclip.ing>
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