Skip to content

Commit 134f66d

Browse files
authored
Update Claude Code action permissions (#260)
- Allow Claude to submit inline PR review comments - Fix the CI read permissions - Bump to latest Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com> Co-authored-by: Dan Barr <6922515+danbarr@users.noreply.github.com>
1 parent 61b97f9 commit 134f66d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/claude.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Claude PR Assistant
1+
name: Claude Code
22

33
on:
44
issue_comment:
@@ -21,8 +21,8 @@ jobs:
2121
timeout-minutes: 20
2222
permissions:
2323
contents: read
24-
pull-requests: read
25-
issues: read
24+
pull-requests: write
25+
issues: write
2626
id-token: write
2727
actions: read # Required for Claude to read CI results on PRs
2828
steps:
@@ -33,6 +33,8 @@ jobs:
3333

3434
- name: Run Claude Code
3535
id: claude
36-
uses: anthropics/claude-code-action@e8bad572273ce919ba15fec95aef0ce974464753 # v1
36+
uses: anthropics/claude-code-action@f30f5eecfce2f34fa72e40fa5f7bcdbdcad12eb8 # v1
3737
with:
3838
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
39+
additional_permissions: |
40+
actions: read

0 commit comments

Comments
 (0)