Skip to content

Commit 43ae3c4

Browse files
Allow claude code review to add a check
1 parent 5c1f43f commit 43ae3c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
timeout-minutes: 15 # adds cost protection
2323
permissions:
24+
checks: write
2425
contents: read
2526
pull-requests: write
2627
id-token: write # claude-code-action needs this to authenticate with GitHub
@@ -44,7 +45,7 @@ jobs:
4445
use_vertex: "true"
4546
prompt: "/review-pr REPO: ${{ github.repository }} PR_NUMBER: ${{ github.event.pull_request.number }}"
4647
claude_args: |
47-
--allowedTools "Read" "Bash(git diff *)" "Bash(git log *)" "Bash(git show *)" "Bash(gh repo view *)" "Bash(gh pr view *)" "Bash(gh pr diff *)" "Bash(gh pr comment *)" "Bash(gh api *)"
48+
--allowedTools "Read" "Bash(git diff *)" "Bash(git log *)" "Bash(git show *)" "Bash(gh repo view *)" "Bash(gh pr view *)" "Bash(gh pr diff *)" "Bash(gh pr comment *)" "Bash(gh api *)" "Bash(gh pr checks *)"
4849
--model "claude-opus-4-6"
4950
env:
5051
ANTHROPIC_VERTEX_PROJECT_ID: ${{ secrets.ANTHROPIC_VERTEX_PROJECT_ID }}

0 commit comments

Comments
 (0)