diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml index 88a7481..d02527a 100644 --- a/.github/workflows/code-review.yml +++ b/.github/workflows/code-review.yml @@ -36,6 +36,11 @@ jobs: PR_NUMBER: ${{ github.event.pull_request.number }} REPO: ${{ github.repository }} + - name: Checkout repository + uses: actions/checkout@v6 + with: + fetch-depth: 1 + - uses: anthropics/claude-code-action@v1 with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} @@ -67,7 +72,7 @@ jobs: Follow the guidelines in REVIEW.md if present. claude_args: | --model opus - --allowedTools "WebSearch,WebFetch,mcp__github_inline_comment__create_inline_comment,Bash(gh api:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr checks:*),Bash(git log:*),Bash(git blame:*),Bash(git diff:*)," + --allowedTools "Read,Glob,Grep,WebSearch,WebFetch,mcp__github_inline_comment__create_inline_comment,Bash(gh api:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr checks:*),Bash(git log:*),Bash(git blame:*),Bash(git diff:*)," env: GH_TOKEN: ${{ github.token }} ANTHROPIC_BASE_URL: ${{ vars.ANTHROPIC_BASE_URL }}