File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Claude Code Action
2
+
3
+ permissions :
4
+ contents : write
5
+ pull-requests : write
6
+ issues : write
7
+ id-token : write
8
+
9
+ on :
10
+ issue_comment :
11
+ types : [created]
12
+ pull_request_review_comment :
13
+ types : [created]
14
+ issues :
15
+ types : [opened, assigned]
16
+
17
+ jobs :
18
+ claude-code :
19
+ if : |
20
+ (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
21
+ (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
22
+ (github.event_name == 'issues' && contains(github.event.issue.body, '@claude'))
23
+ runs-on : ubuntu-latest
24
+ env :
25
+ AWS_REGION : us-west-2
26
+ steps :
27
+ - name : Checkout repository
28
+ uses : actions/checkout@v4
29
+
30
+ - name : Generate GitHub App token
31
+ id : app-token
32
+ uses : actions/create-github-app-token@v2
33
+ with :
34
+ app-id : ${{ secrets.APP_ID }}
35
+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
36
+
37
+ - name : Configure AWS Credentials (OIDC)
38
+ uses : aws-actions/configure-aws-credentials@v4
39
+ with :
40
+ role-to-assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
41
+ aws-region : us-west-2
42
+
43
+ - uses : anthropics/claude-code-action@beta
44
+ with :
45
+ trigger_phrase : " @claude"
46
+ timeout_minutes : " 60"
47
+ github_token : ${{ steps.app-token.outputs.token }}
48
+ use_bedrock : " true"
49
+ model : " us.anthropic.claude-sonnet-4-20250514-v1:0"
50
+ allowed_tools : |
51
+ Bash(php:*)
52
+ Bash(npm:*)
53
+ Bash(composer:*)
54
+ Edit
55
+ View
You can’t perform that action at this time.
0 commit comments