diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 99784a7..8488e8d 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -17,9 +17,6 @@ on: claude_code_oauth_token: description: 'Claude Code OAuth token' required: true - github_token: - description: 'GitHub token for API access' - required: true permissions: contents: write @@ -41,7 +38,7 @@ jobs: uses: anthropics/claude-code-action@v1 with: claude_code_oauth_token: ${{ secrets.claude_code_oauth_token }} - github_token: ${{ secrets.github_token }} + github_token: ${{ secrets.GITHUB_TOKEN }} track_progress: true claude_args: "--allowedTools '${{ inputs.allowed_tools }}'" prompt: ${{ inputs.prompt }} diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml index f5fefb4..c7216d5 100644 --- a/.github/workflows/code-review.yml +++ b/.github/workflows/code-review.yml @@ -28,9 +28,6 @@ on: claude_code_oauth_token: description: 'Claude Code OAuth token' required: true - github_token: - description: 'GitHub token for API access' - required: true permissions: contents: read @@ -87,7 +84,7 @@ jobs: uses: anthropics/claude-code-action@v1 with: claude_code_oauth_token: ${{ secrets.claude_code_oauth_token }} - github_token: ${{ secrets.github_token }} + github_token: ${{ secrets.GITHUB_TOKEN }} track_progress: true claude_args: --allowedTools "${{ inputs.allowed_tools }}" prompt: | diff --git a/.github/workflows/issue-triage.yml b/.github/workflows/issue-triage.yml index aa10f20..647d526 100644 --- a/.github/workflows/issue-triage.yml +++ b/.github/workflows/issue-triage.yml @@ -26,9 +26,6 @@ on: claude_code_oauth_token: description: 'Claude Code OAuth token' required: true - github_token: - description: 'GitHub token for API access' - required: true linear_api_token: description: 'Linear API token' required: true @@ -54,7 +51,7 @@ jobs: LINEAR_API_TOKEN: ${{ secrets.linear_api_token }} with: claude_code_oauth_token: ${{ secrets.claude_code_oauth_token }} - github_token: ${{ secrets.github_token }} + github_token: ${{ secrets.GITHUB_TOKEN }} track_progress: true settings: | { diff --git a/CLAUDE.md b/CLAUDE.md index d0c63a7..39b9dd1 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -45,7 +45,8 @@ uses: ORG/REPO/.github/workflows/claude.yml@v1 Each workflow defines: - `inputs` - Configurable parameters (allowed_tools, prompt, etc.) -- `secrets` - Required credentials (claude_code_oauth_token, github_token) +- `secrets` - Required credentials (claude_code_oauth_token, linear_api_token + for triage) - `permissions` - GitHub token scopes needed The `issue-triage.yml` workflow has conditional steps based on `enable_linear` diff --git a/README.md b/README.md index 6d7fa26..011db3e 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,11 @@ Set these secrets in your repository or organization: | Secret | Required | Description | | ------------------------- | -------- | ----------------------------------------- | | `CLAUDE_CODE_OAUTH_TOKEN` | Yes | Claude Code OAuth token | -| `GITHUB_TOKEN` | Yes | Automatically provided by GitHub Actions | | `LINEAR_API_KEY` | No | Required only if using Linear integration | +> **Note:** `GITHUB_TOKEN` is automatically available in all workflows - no need +> to pass it. + ### Repository Access (Private Repos) If this repository is private, enable access for other repositories: @@ -56,7 +58,6 @@ jobs: uses: zaks-io/claude-code-action/.github/workflows/claude.yml@main secrets: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} - github_token: ${{ secrets.GITHUB_TOKEN }} ``` ### With Issue Triage @@ -75,7 +76,6 @@ jobs: linear_team_prefix: 'PROJ' secrets: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} - github_token: ${{ secrets.GITHUB_TOKEN }} linear_api_token: ${{ secrets.LINEAR_API_KEY }} ``` @@ -98,7 +98,6 @@ jobs: uses: zaks-io/claude-code-action/.github/workflows/code-review.yml@main secrets: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} - github_token: ${{ secrets.GITHUB_TOKEN }} ``` ### With Automatic Code Review @@ -125,7 +124,6 @@ jobs: trigger_type: auto secrets: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} - github_token: ${{ secrets.GITHUB_TOKEN }} ``` ## Workflow Reference @@ -146,7 +144,6 @@ General-purpose Claude Code agent for responding to comments. | Secret | Required | Description | | ------------------------- | -------- | ----------------------- | | `claude_code_oauth_token` | Yes | Claude Code OAuth token | -| `github_token` | Yes | GitHub token | #### Permissions @@ -178,7 +175,6 @@ Automated issue triage with Linear integration. | Secret | Required | Description | | ------------------------- | -------- | ----------------------- | | `claude_code_oauth_token` | Yes | Claude Code OAuth token | -| `github_token` | Yes | GitHub token | | `linear_api_token` | Yes | Linear API token | #### Permissions @@ -223,7 +219,6 @@ Code review workflow supporting both manual (`/review` comment) and automatic | Secret | Required | Description | | ------------------------- | -------- | ----------------------- | | `claude_code_oauth_token` | Yes | Claude Code OAuth token | -| `github_token` | Yes | GitHub token | #### Permissions @@ -283,7 +278,6 @@ jobs: uses: zaks-io/claude-code-action/.github/workflows/claude.yml@main secrets: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} - github_token: ${{ secrets.GITHUB_TOKEN }} # Issue triage on new issues triage: @@ -293,7 +287,6 @@ jobs: linear_team_prefix: 'PROJ' secrets: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} - github_token: ${{ secrets.GITHUB_TOKEN }} linear_api_token: ${{ secrets.LINEAR_API_KEY }} # Manual code review via /review comment @@ -305,7 +298,6 @@ jobs: uses: zaks-io/claude-code-action/.github/workflows/code-review.yml@main secrets: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} - github_token: ${{ secrets.GITHUB_TOKEN }} ``` ## Custom Prompts @@ -324,7 +316,6 @@ jobs: 3. Estimate complexity (S/M/L) secrets: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} - github_token: ${{ secrets.GITHUB_TOKEN }} linear_api_token: ${{ secrets.LINEAR_API_KEY }} ```