|
13 | 13 | jobs: |
14 | 14 | claude: |
15 | 15 | if: | |
16 | | - (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || |
17 | | - (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || |
18 | | - (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || |
19 | | - (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) |
| 16 | + (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude') && |
| 17 | + (github.event.comment.user.login == github.repository_owner || github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'COLLABORATOR')) || |
| 18 | + (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude') && |
| 19 | + (github.event.comment.user.login == github.repository_owner || github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'COLLABORATOR')) || |
| 20 | + (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude') && |
| 21 | + (github.event.review.user.login == github.repository_owner || github.event.review.author_association == 'OWNER' || github.event.review.author_association == 'MEMBER' || github.event.review.author_association == 'COLLABORATOR')) || |
| 22 | + (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')) && |
| 23 | + (github.event.issue.user.login == github.repository_owner || github.event.issue.author_association == 'OWNER' || github.event.issue.author_association == 'MEMBER' || github.event.issue.author_association == 'COLLABORATOR')) |
20 | 24 | runs-on: ubuntu-latest |
21 | 25 | permissions: |
22 | 26 | contents: read |
23 | 27 | pull-requests: read |
24 | 28 | issues: read |
25 | 29 | id-token: write |
26 | | - actions: read # Required for Claude to read CI results on PRs |
| 30 | + actions: read |
27 | 31 | steps: |
28 | 32 | - name: Checkout repository |
29 | 33 | uses: actions/checkout@v4 |
|
32 | 36 |
|
33 | 37 | - name: Run Claude Code |
34 | 38 | id: claude |
35 | | - uses: anthropics/claude-code-action@v1 |
| 39 | + uses: anthropics/claude-code-action@094bd24d575e7b30ac1576024817bf1a97c81262 # v1 |
36 | 40 | with: |
37 | 41 | 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 | 42 | additional_permissions: | |
41 | 43 | 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://code.claude.com/docs/en/cli-reference for available options |
49 | | - # claude_args: '--allowed-tools Bash(gh pr:*)' |
50 | | - |
0 commit comments