23
23
pull-requests : read
24
24
issues : read
25
25
id-token : write
26
+ actions : read # Required for Claude to read CI results on PRs
26
27
steps :
27
28
- name : Checkout repository
28
29
uses : actions/checkout@v4
@@ -33,26 +34,31 @@ jobs:
33
34
id : claude
34
35
uses : anthropics/claude-code-action@beta
35
36
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 }}
40
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: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4.1)
44
+ # model: "claude-opus-4-1-20250805"
45
+
41
46
# Optional: Customize the trigger phrase (default: @claude)
42
47
# trigger_phrase: "/claude"
43
-
48
+
44
49
# Optional: Trigger when specific user is assigned to an issue
45
50
# assignee_trigger: "claude-bot"
46
-
51
+
47
52
# Optional: Allow Claude to run specific commands
48
53
# allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
49
-
54
+
50
55
# Optional: Add custom instructions for Claude to customize its behavior for your project
51
56
# custom_instructions: |
52
57
# Follow our coding standards
53
58
# Ensure all new code has tests
54
59
# Use TypeScript for new files
55
-
60
+
56
61
# Optional: Custom environment variables for Claude
57
62
# claude_env: |
58
63
# NODE_ENV: test
64
+
0 commit comments