Skip to content

Releases: grll/claude-code-login

v1.0.0 - Claude Code OAuth GitHub Action

28 Jun 08:28
c936f1b

Choose a tag to compare

🚀 Claude Code OAuth Action - Latest Release

Latest Updates

  • Latest commit: c936f1b
  • Changes: improve branding
  • Updated: 2025-06-28 10:28:25

Features

  • Complete OAuth 2.0 + PKCE authentication flow
  • Two-step GitHub Actions workflow (URL generation → token exchange)
  • Secure credential storage with proper error handling
  • TypeScript implementation with comprehensive test suite
  • Ready for GitHub Marketplace publication
  • Custom branding with log-in icon and orange color
  • Optimized for GitHub Actions environment

Usage

Create .github/workflows/claude-oauth.yml:

name: Claude OAuth
on:
  workflow_dispatch:
    inputs:
      code:
        description: 'Authorization code (leave empty for step 1)'
        required: false

jobs:
  auth:
    runs-on: ubuntu-latest
    steps:
      - uses: grll/claude-code-login@v1
        with:
          code: ${{ inputs.code }}

What's Included

  • OAuth URL generation with PKCE security
  • Authorization code exchange for access tokens
  • Credential persistence to credentials.json
  • GitHub Actions integration with proper outputs
  • Comprehensive error handling and user guidance
  • Optimized action configuration

Files

  • action.yml - GitHub Action definition with proper setup
  • index.ts - Main OAuth implementation
  • index.test.ts - Test suite (25 tests, 100% pass)
  • README.md - Documentation and usage guide
  • scripts/ - Automation scripts

Getting Started

  1. Copy the workflow YAML above to your repository
  2. Run the workflow without code parameter to get login URL
  3. Follow the OAuth flow and get your authorization code
  4. Run the workflow again with the authorization code
  5. Your credentials will be saved to credentials.json

Perfect for CI/CD workflows that need Claude Code authentication!


This release was automatically updated to include the latest changes.