ci(claude-review): Claude Code 사전 설치 step 추가#26
Merged
Conversation
…action#1242 워크어라운드) 업스트림 v1.0.100+ 회귀 — 액션 내부의 `curl claude.ai/install.sh | bash` 가 network 실패 시 silent fail (no pipefail) 하여 SDK 가 `~/.local/bin/claude` 부재로 `ReferenceError: Claude Code native binary not found` 로 죽는 이슈 (GitHub-hosted runner 풀 환경에 따라 간헐적 / 일관적 실패). 액션 step 전에 명시적으로 strict 에러 처리로 install 시도, 실패 시 npm 으로 fallback. 업스트림 #1260 (SDK bundled binary fallback) 머지되면 본 step 제거. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
claude-review워크플로의 업스트림 회귀 워크어라운드.anthropics/claude-code-action@v1(v1.0.100+) 가 내부에서 호출하는curl claude.ai/install.sh | bash이 network 실패 시 silent fail (no pipefail) 하여 SDK 가~/.local/bin/claude부재로ReferenceError: Claude Code native binary not found에러로 죽는 문제. 액션 실행 전에 strict 에러 처리로 명시적 설치 (1차 install.sh, 2차 npm) → 액션 내부 install 재시도가 실패해도 우리 바이너리가 살아남아 SDK 가 정상 동작.Changes
.github/workflows/claude-review.yml— checkout 직후, action 호출 직전에Pre-install Claude Codestep 추가. 28라인.curl -fsSL https://claude.ai/install.sh -o /tmp/...+bash(strict pipefail)npm install -g @anthropic-ai/claude-code+~/.local/bin/claude심볼릭 링크exit 1Background
Test plan
claude-review재실행 → green 확인 (자동 코드 리뷰 정상 동작)🤖 Generated with Claude Code