Skip to content

Commit fdd2a55

Browse files
authored
Add Claude Code GitHub Workflow (#35)
* "Update Claude PR Assistant workflow" * "Update Claude Code Review workflow"
1 parent fdbff4e commit fdd2a55

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/claude-code-review.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
permissions:
2323
contents: read
24-
pull-requests: write
24+
pull-requests: read
2525
issues: read
2626
id-token: write
2727

@@ -36,11 +36,10 @@ jobs:
3636
uses: anthropics/claude-code-action@beta
3737
with:
3838
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
39-
allowed_bots: "dependabot[bot]"
4039

41-
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
42-
# model: "claude-opus-4-20250514"
43-
40+
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4.1)
41+
# model: "claude-opus-4-1-20250805"
42+
4443
# Direct prompt for automated review (no @claude mention needed)
4544
direct_prompt: |
4645
Please review this pull request and provide feedback on:

.github/workflows/claude.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
permissions:
2222
contents: read
23-
pull-requests: write
23+
pull-requests: read
2424
issues: read
2525
id-token: write
2626
actions: read # Required for Claude to read CI results on PRs
@@ -35,14 +35,13 @@ jobs:
3535
uses: anthropics/claude-code-action@beta
3636
with:
3737
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
38-
allowed_bots: "dependabot[bot]"
3938

4039
# This is an optional setting that allows Claude to read CI results on PRs
4140
additional_permissions: |
4241
actions: read
4342
44-
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
45-
# model: "claude-opus-4-20250514"
43+
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4.1)
44+
# model: "claude-opus-4-1-20250805"
4645

4746
# Optional: Customize the trigger phrase (default: @claude)
4847
# trigger_phrase: "/claude"

0 commit comments

Comments
 (0)