Skip to content

ci: migrate Claude workflows to claude-code-action@v1 and pin Opus - #50

Merged
cmungall merged 1 commit into
mainfrom
fix/claude-action-v1-opus
Jun 17, 2026
Merged

cmungall merged 1 commit into
mainfrom
fix/claude-action-v1-opus

Conversation

@cmungall

Copy link
Copy Markdown
Member

Problem

The Claude Code Review job has been failing on PRs with:

API Error: 404 {"type":"not_found_error","message":"model: claude-sonnet-4-20250514"}

The workflows pinned no model, so anthropics/claude-code-action@beta fell 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 @beta onto the stable @v1 line and pin Opus explicitly. The v1 input surface changed, so this is more than a version bump:

Workflow Changes
claude-code-review.yml @beta→@v1, direct_prompt→prompt, claude_args: --model opus, track_progress: true
claude-ontology-review.yml same migration; also replaces the also-retired model: "claude-opus-4-1-20250805" pin with --model opus
claude.yml (interactive @claude bot) @beta→@v1; removed mcp_config/allowed_tools inputs moved into claude_args (--mcp-config, --allowedTools); --model opus

Notes

  • --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 in claude-opus-4-8 if exact pinning is preferred.
  • track_progress: true restores the v0.x behavior of posting a review comment (in v1, supplying a prompt runs automation mode, which doesn't comment by default) and auto-injects PR context.
  • Pre-existing quirk left as-is in claude.yml: server is named ols but --allowedTools lists mcp__ols_mcp__… (would be mcp__ols__…); out of scope here.

🤖 Generated with Claude Code

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>
@cmungall
cmungall merged commit 8f1e5e0 into main Jun 17, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant