Skip to content

chore: automate OAuth token rotation via secrets-sync #8

@JacobPEvans

Description

@JacobPEvans

Summary

Claude Code OAuth tokens expire periodically. Currently, renewal requires manually running claude setup-token, then updating both CLAUDE_CODE_OAUTH_TOKEN and ANTHROPIC_API_KEY secrets in the secrets-sync repo, then triggering the sync workflow.

Automate this process so token rotation is a single command or scheduled workflow.

Current Process

  1. Run claude setup-token locally to get new OAuth token
  2. gh secret set CLAUDE_CODE_OAUTH_TOKEN --repo JacobPEvans/secrets-sync
  3. gh secret set ANTHROPIC_API_KEY --repo JacobPEvans/secrets-sync
  4. Trigger secrets-sync workflow to distribute to all repos

Desired State

  • Single command or workflow that handles the full rotation
  • Optionally: scheduled check that warns when token is near expiry

Phase

Backlog

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:lowLow - Address when time permitssize:sS - Simple change, 1-4 hourstype:choreChore - Maintenance tasks, dependencies, tooling

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions