ci: pin current claude-sonnet-4-6 model in claude-code-action workflows#183
Conversation
The claude-code-action@beta default model (claude-sonnet-4-20250514) was removed from the API and now 404s, failing the review-bot jobs. Pin an explicit current model in both claude.yml and claude-code-review.yml. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Claude finished @MementoRC's task —— View job PR Review
This is a clean, minimal fix. Here's my review: SummaryThe change pins Code QualityThe change is correct and well-scoped. The inline comments explaining the fix ( Potential IssuesModel string format inconsistency — This repo uses
SecurityNo concerns. Secrets are referenced via Test CoverageYAML-only change; no unit tests applicable. The fix is self-validating once the action runs successfully on a PR. VerdictApproved — The fix is correct, minimal, and well-documented. The only actionable suggestion is to verify that |
Summary
The
anthropics/claude-code-action@betareview/assistant jobs were failing with:The action's built-in default model (
claude-sonnet-4-20250514) has been removed from the API, so any job that didn't pin a model 404'd. Both workflows only had a commented-out example (# model: "claude-opus-4-20250514", itself deprecated), so they fell back to the dead default.Change
Pin an explicit current model in both workflows'
with:blocks:.github/workflows/claude.yml.github/workflows/claude-code-review.ymlYAML-only change; no code or tests affected. Unblocks the Claude review bot on PRs (e.g. the failure observed on #182).
🤖 Generated with Claude Code