From 5606557c6bf66c3175cb9e8775c326814a0af091 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 19 Mar 2026 11:42:52 -0700 Subject: [PATCH] fix(ci): install Claude Code via npm to avoid install.sh 403 (#8701) The claude-code-action's built-in installer uses `curl https://claude.ai/install.sh | bash` which can fail with 403. Due to the pipe, bash exits 0 on empty input, masking the curl failure and leaving the `claude` binary missing. Work around this by installing Claude Code via npm before invoking the action, and passing the executable path via path_to_claude_code_executable. Co-authored-by: Copilot --- .github/workflows/claude-code-review.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 5b6848ff2..ce87e7413 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -31,11 +31,20 @@ jobs: with: fetch-depth: 1 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install Claude Code + run: npm install -g @anthropic-ai/claude-code + - name: Run Claude Code Review id: claude-review uses: anthropics/claude-code-action@v1 with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} + path_to_claude_code_executable: claude allowed_bots: "*" plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' plugins: 'code-review@claude-code-plugins'