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
@@ -31,29 +32,19 @@ jobs:
3132
3233 - name : Run Claude Code
3334 id : claude
34- uses : anthropics/claude-code-action@beta
35+ uses : anthropics/claude-code-action@v1
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"
40-
41- # Optional: Customize the trigger phrase (default: @claude)
42- # trigger_phrase: "/claude"
43-
44- # Optional: Trigger when specific user is assigned to an issue
45- # assignee_trigger: "claude-bot"
46-
47- # Optional: Allow Claude to run specific commands
48- # allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
49-
50- # Optional: Add custom instructions for Claude to customize its behavior for your project
51- # custom_instructions: |
52- # Follow our coding standards
53- # Ensure all new code has tests
54- # Use TypeScript for new files
55-
56- # Optional: Custom environment variables for Claude
57- # claude_env: |
58- # NODE_ENV: test
37+ claude_code_oauth_token : ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
38+
39+ # This is an optional setting that allows Claude to read CI results on PRs
40+ additional_permissions : |
41+ actions: read
42+
43+ # Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
44+ # prompt: 'Update the pull request description to include a summary of changes.'
45+
46+ # Optional: Add claude_args to customize behavior and configuration
47+ # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
48+ # or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
49+ # claude_args: '--allowed-tools Bash(gh pr:*)'
5950
0 commit comments