From 4826761d5163162c280baa03217678a7e72c0bf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CMatin-deriv=E2=80=9D?= Date: Tue, 16 Jun 2026 14:21:30 +0800 Subject: [PATCH] ci: move claude_args next to other with: inputs Relocate the claude_args block to sit with the other with: inputs (anthropic_api_key, github_token, ...) for readability instead of trailing after the multi-line prompt. No behavioral change: model still resolves from ${{ env.CLAUDE_MODEL }} and the allowedTools set is unchanged. Drops the now-stale inline comments. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/claude-pr-review.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/claude-pr-review.yml b/.github/workflows/claude-pr-review.yml index 50733ad..cd24398 100644 --- a/.github/workflows/claude-pr-review.yml +++ b/.github/workflows/claude-pr-review.yml @@ -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 @@ -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: