Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/claude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/issue-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
{
Expand Down
3 changes: 2 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
15 changes: 3 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
```

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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 }}
```

Expand Down