1
- name : Claude Dispatch
1
+ # IMPORTANT: Do not move this file in your repo! Make sure it's located at .github/workflows/claude-dispatch.yml
2
+
3
+ name : Claude Code Dispatch
4
+
5
+ # IMPORTANT: Do not modify this `on` section!
2
6
3
7
on :
4
8
repository_dispatch :
5
- types : [claude]
9
+ types : [claude-dispatch ]
6
10
7
11
jobs :
8
- claude :
12
+ claude-dispatch :
9
13
runs-on : ubuntu-latest
10
14
permissions :
11
15
contents : write
12
16
pull-requests : write
13
17
issues : write
18
+ id-token : write
14
19
steps :
15
20
- name : Checkout repository
16
21
uses : actions/checkout@v4
22
+ with :
23
+ fetch-depth : 1
24
+
25
+ # - name: Preliminary Setup
26
+ # run: |
27
+ # echo "Setting up environment..."
28
+ # # Add any preliminary setup commands here to setup Claude's dev environment
29
+ # # e.g., npm install, etc.
17
30
18
31
- name : Run Claude Code
19
- uses : anthropics/claude-code-action@beta
32
+ id : claude
33
+ uses : anthropics/claude-code-action@eap
20
34
with :
21
- claude_code_oauth_token : ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
22
- # Optional: customize model (defaults to Claude Sonnet 4)
35
+ mode : ' remote-agent'
36
+ # Optional: Specify an API key, otherwise we'll use your Claude account automatically
37
+ # anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
38
+
39
+ # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
23
40
# model: "claude-opus-4-20250514"
24
-
25
- # Optional: allow specific development commands
26
- # allowed_tools: "Bash(terraform fmt),Bash(terraform validate),Bash(go test ./...)"
27
-
28
- # Optional: custom instructions for Claude
29
- # custom_instructions: |
30
- # Follow Terraform best practices
31
- # Ensure all changes are validated and formatted
32
- # Run tests before submitting changes
33
-
34
- # Optional: environment variables
41
+
42
+ # Optional: Allow Claude to run specific commands
43
+ # allowed_tools: |
44
+ # Bash(npm run lint)
45
+ # Bash(npm run test)
46
+ # Bash(npm run build)
47
+
48
+ # Optional: Custom environment variables for Claude
35
49
# claude_env: |
36
- # TF_IN_AUTOMATION: true
50
+ # NODE_ENV: test
0 commit comments