Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
issues: read
pull-requests: write
issues: write
id-token: write

steps:
Expand All @@ -35,6 +35,7 @@ jobs:
id: claude-review
uses: anthropics/claude-code-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
anthropic_api_key: ${{ secrets.Z_AI_API_KEY }}
prompt: |
REPO: ${{ github.repository }}
Expand All @@ -55,6 +56,7 @@ jobs:
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
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:*)" --dangerously-skip-permissions'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# You are 100% correct: This redirects the API
# calls to your z.ai proxy endpoint.
ANTHROPIC_BASE_URL: "https://api.z.ai/api/anthropic"
Expand Down
Loading