Skip to content

Commit b7cb45f

Browse files
committed
"Update Claude PR Assistant workflow"
1 parent 9b064b1 commit b7cb45f

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/claude.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
pull-requests: read
2424
issues: read
2525
id-token: write
26+
actions: read # Required for Claude to read CI results on PRs
2627
steps:
2728
- name: Checkout repository
2829
uses: actions/checkout@v4
@@ -33,26 +34,31 @@ jobs:
3334
id: claude
3435
uses: anthropics/claude-code-action@beta
3536
with:
36-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
37-
38-
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
39-
# model: "claude-opus-4-20250514"
37+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
4038

39+
# This is an optional setting that allows Claude to read CI results on PRs
40+
additional_permissions: |
41+
actions: read
42+
43+
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4.1)
44+
# model: "claude-opus-4-1-20250805"
45+
4146
# Optional: Customize the trigger phrase (default: @claude)
4247
# trigger_phrase: "/claude"
43-
48+
4449
# Optional: Trigger when specific user is assigned to an issue
4550
# assignee_trigger: "claude-bot"
46-
51+
4752
# Optional: Allow Claude to run specific commands
4853
# allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
49-
54+
5055
# Optional: Add custom instructions for Claude to customize its behavior for your project
5156
# custom_instructions: |
5257
# Follow our coding standards
5358
# Ensure all new code has tests
5459
# Use TypeScript for new files
55-
60+
5661
# Optional: Custom environment variables for Claude
5762
# claude_env: |
5863
# NODE_ENV: test
64+

0 commit comments

Comments
 (0)