diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index c8bc84b..ebfff55 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -23,11 +23,14 @@ jobs: with: fetch-depth: 0 - name: Run Claude Code Review - uses: anthropics/claude-code-action@beta + uses: anthropics/claude-code-action@v1 with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} - model: "claude-sonnet-4-20250514" - direct_prompt: | + track_progress: true + prompt: | + REPO: ${{ github.repository }} + PR NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }} + Review this PR for: 1. Correctness bugs (logic errors, off-by-one, null safety) 2. Security issues (injection, unsafe operations, credential handling) @@ -37,3 +40,5 @@ jobs: Be concise. Only comment on real issues, not style preferences. Do not comment on pre-existing warnings or code not changed in this PR. + claude_args: | + --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"