Skip to content

Commit 7dfad90

Browse files
committed
"Update Claude Code Review workflow"
1 parent b8bf3df commit 7dfad90

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/claude-code-review.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
runs-on: ubuntu-latest
2222
permissions:
2323
contents: read
24-
pull-requests: write
25-
issues: write
24+
pull-requests: read
25+
issues: read
2626
id-token: write
2727

2828
steps:
@@ -36,9 +36,6 @@ jobs:
3636
uses: anthropics/claude-code-action@v1
3737
with:
3838
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
39-
use_sticky_comment: true
40-
additional_permissions: |
41-
actions: read
4239
prompt: |
4340
REPO: ${{ github.repository }}
4441
PR NUMBER: ${{ github.event.pull_request.number }}
@@ -52,7 +49,9 @@ jobs:
5249
5350
Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback.
5451
52+
Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR.
53+
5554
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
56-
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
57-
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'
55+
# or https://code.claude.com/docs/en/cli-reference for available options
56+
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'
5857

0 commit comments

Comments
 (0)