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
This commit is contained in:
parent
7d2f7bf38a
commit
c2489ca663
1 changed files with 10 additions and 22 deletions
32
.github/workflows/claude.yml
vendored
32
.github/workflows/claude.yml
vendored
|
|
@ -23,7 +23,7 @@ jobs:
|
||||||
pull-requests: read
|
pull-requests: read
|
||||||
issues: read
|
issues: read
|
||||||
id-token: write
|
id-token: write
|
||||||
actions: read # Required for Claude to read CI results on PRs
|
actions: read
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -36,28 +36,16 @@ jobs:
|
||||||
with:
|
with:
|
||||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||||
|
|
||||||
# This is an optional setting that allows Claude to read CI results on PRs
|
# Allow Claude to read CI results on PRs
|
||||||
additional_permissions: |
|
additional_permissions: |
|
||||||
actions: read
|
actions: read
|
||||||
|
|
||||||
|
# Trigger when assigned to an issue
|
||||||
|
assignee_trigger: "claude"
|
||||||
|
|
||||||
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4.1)
|
# Allow Claude to run bash
|
||||||
# model: "claude-opus-4-1-20250805"
|
# This should be safe given the repo is already public
|
||||||
|
allowed_tools: "Bash"
|
||||||
|
|
||||||
# Optional: Customize the trigger phrase (default: @claude)
|
custom_instructions: |
|
||||||
# trigger_phrase: "/claude"
|
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.
|
||||||
|
|
||||||
# Optional: Trigger when specific user is assigned to an issue
|
|
||||||
# assignee_trigger: "claude-bot"
|
|
||||||
|
|
||||||
# Optional: Allow Claude to run specific commands
|
|
||||||
# allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
|
|
||||||
|
|
||||||
# Optional: Add custom instructions for Claude to customize its behavior for your project
|
|
||||||
# custom_instructions: |
|
|
||||||
# Follow our coding standards
|
|
||||||
# Ensure all new code has tests
|
|
||||||
# Use TypeScript for new files
|
|
||||||
|
|
||||||
# Optional: Custom environment variables for Claude
|
|
||||||
# claude_env: |
|
|
||||||
# NODE_ENV: test
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue