ci: pin Claude Action model (default model 404s on every PR)#3488
Conversation
The Claude Code Review check was failing on every PR with `API Error: 404 not_found_error — model: claude-sonnet-4-20250514`. claude-code-review.yml and claude.yml did not set `model:` (the line was commented), so they fell back to the action's default model, which has been removed upstream and now 404s. issue-triage.yml hardcoded the same dead id in three places. Pin all of them to a current model (claude-sonnet-4-6). Bump to a current Opus if deeper reviews are wanted. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Claude finished @Yeraze's task —— View job Claude Code Review
SummaryThis is a straightforward and correct infrastructure fix. The changes are minimal, well-targeted, and resolve the root cause of CI failures. Here's my assessment: What's GoodCorrect diagnosis and fix. The PR correctly identifies that the action's default model ( Consistent fix. All three affected files ( Explanatory comments. The inline comments in Minor ObservationsModel pinning trade-off. Pinning to a specific model ID like
VerdictLGTM. The fix is correct, minimal, and addresses the stated problem. No new issues are introduced. The self-validating aspect (this PR exercises the fixed workflow) is a nice touch. |
Problem
The Claude Code Review check has been failing on every PR with:
claude-code-review.ymlandclaude.ymldon't setmodel:(the line was commented out), so they fall back to the action's default model — which has been removed upstream and now 404s.issue-triage.ymlhardcoded the same dead model id in three places.This is why claude-review showed
failureon recent PRs (e.g. #3487) despite the code being fine; it's an infra issue, not a review finding. Confirmed via the failed log:CLAUDE_SUCCESS: false+ the 404 above. (A secret refresh does not fix it — it's the model id, not auth.)Fix
Pin a current model (
claude-sonnet-4-6) in all three workflows:claude-code-review.yml(uncommented + set)claude.yml(uncommented + set)issue-triage.yml(3 occurrences replaced)Sonnet 4.6 matches the action's previous Sonnet-tier default; bump to a current Opus if deeper reviews are wanted.
Validation
claude-sonnet-4-20250514references remain in active config (only in explanatory comments).This PR will itself exercise the fixed
claude-code-review.yml, so a green claude-review check here confirms it works.🤖 Generated with Claude Code