Skip to content

Commit c2489ca

Browse files
authored
Update Claude workflow configuration (#234)
## Summary - Enable additional permissions for Claude to read CI results - Configure Claude to trigger when assigned to issues - Allow bash command execution for this public repository - Add custom instructions for concise GitHub comment formatting
1 parent 7d2f7bf commit c2489ca

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

.github/workflows/claude.yml

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +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
26+
actions: read
2727
steps:
2828
- name: Checkout repository
2929
uses: actions/checkout@v4
@@ -36,28 +36,16 @@ jobs:
3636
with:
3737
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
3838

39-
# This is an optional setting that allows Claude to read CI results on PRs
39+
# Allow Claude to read CI results on PRs
4040
additional_permissions: |
4141
actions: read
42+
43+
# Trigger when assigned to an issue
44+
assignee_trigger: "claude"
4245

43-
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4.1)
44-
# model: "claude-opus-4-1-20250805"
45-
46-
# Optional: Customize the trigger phrase (default: @claude)
47-
# trigger_phrase: "/claude"
48-
49-
# Optional: Trigger when specific user is assigned to an issue
50-
# assignee_trigger: "claude-bot"
51-
52-
# Optional: Allow Claude to run specific commands
53-
# allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
54-
55-
# Optional: Add custom instructions for Claude to customize its behavior for your project
56-
# custom_instructions: |
57-
# Follow our coding standards
58-
# Ensure all new code has tests
59-
# Use TypeScript for new files
46+
# Allow Claude to run bash
47+
# This should be safe given the repo is already public
48+
allowed_tools: "Bash"
6049

61-
# Optional: Custom environment variables for Claude
62-
# claude_env: |
63-
# NODE_ENV: test
50+
custom_instructions: |
51+
If posting a comment to GitHub, give a concise summary of the comment at the top and put all the details in a <details> block.

0 commit comments

Comments
 (0)