Repository navigation
ci: migrate Claude workflows to claude-code-action@v1 and pin Opus - #50
Merged
Merged
Conversation
The PR review job was failing with `API Error: 404 not_found_error model: claude-sonnet-4-20250514`: with no model pinned, the @beta action fell back to a built-in default model id that has since been retired. Migrate the three workflows that use the action off @beta onto the stable @v1 line and pin the model explicitly: - @beta -> @v1 - direct_prompt -> prompt (renamed in v1) - model input -> claude_args: --model (and replace the also-retired claude-opus-4-1-20250805 pin in the ontology review) - mcp_config / allowed_tools (removed in v1) -> claude_args: --mcp-config / --allowedTools - add track_progress: true on the two review workflows so v1 automation mode still posts a review comment Use the `opus` alias rather than a dated model id so the workflows track the current Opus and won't 404 again when a specific version is retired. Co-Authored-By: Claude Opus 4.8 (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.
Problem
The Claude Code Review job has been failing on PRs with:
The workflows pinned no model, so
anthropics/claude-code-action@betafell back to a built-in default model id (claude-sonnet-4-20250514) that has since been retired → 404 → the step exits 1. It's not a code problem; it's the action defaulting to a dead model. (See e.g. run 27656888640 on PR #49.)Change
Migrate the three workflows that use the action off
@betaonto the stable@v1line and pin Opus explicitly. The v1 input surface changed, so this is more than a version bump:claude-code-review.yml@beta→@v1,direct_prompt→prompt,claude_args: --model opus,track_progress: trueclaude-ontology-review.ymlmodel: "claude-opus-4-1-20250805"pin with--model opusclaude.yml(interactive@claudebot)@beta→@v1; removedmcp_config/allowed_toolsinputs moved intoclaude_args(--mcp-config,--allowedTools);--model opusNotes
--model opus(alias), not a dated id — this is the exact failure mode being fixed; the alias always resolves to the current Opus so it won't 404 the next time a version retires. Swap inclaude-opus-4-8if exact pinning is preferred.track_progress: truerestores the v0.x behavior of posting a review comment (in v1, supplying apromptruns automation mode, which doesn't comment by default) and auto-injects PR context.claude.yml: server is namedolsbut--allowedToolslistsmcp__ols_mcp__…(would bemcp__ols__…); out of scope here.🤖 Generated with Claude Code