Skip to content

Use OAuth token for Claude Code Action#570

Merged
jamesrweb merged 1 commit intomainfrom
chore/use-oauth-for-claude-action
Apr 2, 2026
Merged

Use OAuth token for Claude Code Action#570
jamesrweb merged 1 commit intomainfrom
chore/use-oauth-for-claude-action

Conversation

@jamesrweb
Copy link
Copy Markdown
Member

Related Issue

Fixes #558 (follow-up)

PR Type

  • 🐛 Bug Fix
  • ✨ New Feature
  • 🔨 Code Refactor
  • 📝 Documentation Update
  • 🧪 Test Update
  • 🔧 Build/CI Update
  • 🧹 Chore
  • ⏪ Revert

Description

Switches the Claude Code GitHub Action from API key authentication (anthropic_api_key) to OAuth token authentication (claude_code_oauth_token). This allows the action to use an existing Claude Max subscription instead of requiring separate API billing.

Proposed Changes

  • Replaced anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} with claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} in .github/workflows/claude.yml

How Has This Been Tested?

  • Unit Tests
  • Integration Tests
  • Manual Testing (please describe)

The workflow change can be verified once the CLAUDE_CODE_OAUTH_TOKEN repository secret is configured (generated via claude setup-token). The old ANTHROPIC_API_KEY secret can then be removed.

Screenshots/Recordings

N/A — CI configuration change only.

Breaking Changes

  • Yes (please describe)
  • No

Checklist

  • My code follows the code style of this project
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed
  • My changes generate no new warnings

Additional Notes

Before merging, ensure the CLAUDE_CODE_OAUTH_TOKEN repository secret has been created. Generate it locally with claude setup-token (requires a Claude Pro/Max subscription). After confirming the OAuth token works, the ANTHROPIC_API_KEY secret can be deleted.

Switch from API key to OAuth token authentication so the action
uses the existing Claude Max subscription instead of separate API billing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jamesrweb jamesrweb requested a review from yevdyko as a code owner April 2, 2026 22:30
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

Coverage report for commit: 9d4bb68
File: ./coverage/clover.xml

Cover ┌─────────────────────────┐ Freq.
   0% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  10% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  20% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  30% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  40% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  50% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  60% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  70% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  80% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  90% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
 100% │ ███████████████████████ │ 100.0%
      └─────────────────────────┘
 *Legend:* █ = Current Distribution 
Summary - Lines: 100.00% | Methods: 100.00% | Branches: 97.22%
FilesLinesMethodsBranches
src/components
   P5Canvas.tsx100.00%100.00%100.00%
   P5CanvasGuard.tsx100.00%100.00%87.50%
   P5CanvasWithSketch.tsx100.00%100.00%100.00%
src/constants
   CanvasContainerClassName.ts100.00%100.00%100.00%
src/contracts
   CanvasContainer.ts100.00%100.00%100.00%
   CanvasContainerRef.ts100.00%100.00%100.00%
   InputProps.ts100.00%100.00%100.00%
   P5CanvasInstance.ts100.00%100.00%100.00%
   P5CanvasInstanceRef.ts100.00%100.00%100.00%
   P5CanvasProps.ts100.00%100.00%100.00%
   P5CanvasPropsWithSketch.ts100.00%100.00%100.00%
   Sketch.ts100.00%100.00%100.00%
   SketchProps.ts100.00%100.00%100.00%
   WithChildren.ts100.00%100.00%100.00%
   p5.ts100.00%100.00%100.00%
src
   main.tsx100.00%100.00%100.00%
src/utils
   createP5CanvasInstance.ts100.00%100.00%100.00%
   logErrorBoundaryError.ts100.00%100.00%100.00%
   propsAreEqual.ts100.00%100.00%100.00%
   removeP5CanvasInstance.ts100.00%100.00%100.00%
   updateP5CanvasInstance.ts100.00%100.00%100.00%
   withoutKeys.ts100.00%100.00%100.00%

🤖 comment via lucassabreu/comment-coverage-clover

@jamesrweb jamesrweb changed the title 🔧 chore(ci): Use OAuth token for Claude Code Action Use OAuth token for Claude Code Action Apr 2, 2026
@jamesrweb jamesrweb self-assigned this Apr 2, 2026
@jamesrweb jamesrweb added dependencies Pull requests that update a dependency file documentation Pull requests that update project documentation github-actions labels Apr 2, 2026
@jamesrweb jamesrweb merged commit feec7d1 into main Apr 2, 2026
7 of 8 checks passed
@jamesrweb jamesrweb deleted the chore/use-oauth-for-claude-action branch April 2, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Pull requests that update project documentation github-actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant