Skip to content
Open
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
12 changes: 3 additions & 9 deletions .github/workflows/claude-pr-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,15 @@ jobs:
timeout-minutes: 60
env:
ANTHROPIC_BASE_URL: https://litellmsa.deriv.ai
# ANTHROPIC_AUTH_TOKEN is the bearer the Claude CLI sends to the gateway.
# The api key for the action's env validation is passed via the
# anthropic_api_key `with:` input below (maps to ANTHROPIC_API_KEY).
ANTHROPIC_AUTH_TOKEN: ${{ secrets.ANTHROPIC_API_KEY }}
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: "1"
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS: "1"
DISABLE_NON_ESSENTIAL_MODEL_CALLS: "1"
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
claude_args: |
--model ${{ env.CLAUDE_MODEL }}
--allowedTools "Read,Write,Bash(gh pr diff:*),Bash(gh pr view:*)"
github_token: ${{ secrets.GITHUB_TOKEN }}
track_progress: true
show_full_output: true
Expand All @@ -302,12 +302,6 @@ jobs:
5. After reading ALL files and dependencies, compile your complete review.
Write the ENTIRE review to /tmp/claude_review_output.txt using the Write tool.
Do NOT call gh pr comment — the next step posts the file as a single comment.
# Write is unrestricted (plain "Write", not "Write(/path)") so the tool is actually available.
# Bash(gh pr comment) is intentionally excluded — the post step below guarantees exactly one comment.
# model moved to claude_args — `model` is no longer a valid action input.
claude_args: |
--model ${{ env.CLAUDE_MODEL }}
--allowedTools "Read,Write,Bash(gh pr diff:*),Bash(gh pr view:*)"

- name: Post review as single PR comment
env:
Expand Down
Loading