-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
area:installationenhancementNew feature or requestNew feature or requestp2Non-showstopper bug or popular feature requestNon-showstopper bug or popular feature requestprovider:1pAnthropic First-Party APIAnthropic First-Party API
Description
Problem
Claude Max subscribers cannot reliably use the GitHub Action with their subscription. The current OAuth flow produces tokens that expire in approximately 1 day, making it impractical for CI/CD use.
Current Situation
- The action supports
claude_code_oauth_tokenas an alternative toanthropic_api_key - Subscribers can extract OAuth tokens from
~/.claude/after running/login - These tokens expire quickly (~1 day)
- There is no
claude_code_refresh_tokeninput to automatically refresh expired tokens - The
/install-github-appcommand sets up tokens but they also expire quickly
Expected Behavior
Max subscribers should be able to use their subscription with GitHub Actions without:
- Paying additional API costs
- Manually refreshing tokens daily
- Building custom refresh automation
Proposed Solutions
- Add refresh token support: Accept a
claude_code_refresh_tokeninput and automatically refresh the access token when expired - Longer-lived tokens: Issue longer-lived OAuth tokens for CI/CD use cases
- GitHub App OAuth: The Claude GitHub App should handle authentication automatically for subscribers who have installed it and linked their account
Workaround
Currently the only reliable option is to use anthropic_api_key, which incurs additional costs beyond the Max subscription.
Environment
- Claude Code version: 2.0.56
- Using: Claude Max subscription
- Action: anthropics/claude-code-action
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:installationenhancementNew feature or requestNew feature or requestp2Non-showstopper bug or popular feature requestNon-showstopper bug or popular feature requestprovider:1pAnthropic First-Party APIAnthropic First-Party API