Skip to content

Instantly share code, notes, and snippets.

@PabloLION
Created October 1, 2025 13:09
Show Gist options
  • Select an option

  • Save PabloLION/9af23e27a5030d65653376c3614b0999 to your computer and use it in GitHub Desktop.

Select an option

Save PabloLION/9af23e27a5030d65653376c3614b0999 to your computer and use it in GitHub Desktop.
Update Claude Workflows to Claude Sonnet 4.5

Update GitHub Claude Workflows to Sonnet 4.5

Tell this to your Claude Code or Codex Cloud


Summary

  • Both Claude automation workflows explicitly request the claude-sonnet-4-5-20250929 model when calling anthropics/claude-code-action@v1, ensuring consistent behavior across general and review scenarios.

Files to Update

  • .github/workflows/claude.yml – adjust the Run Claude Code step so its claude_args contains only --model claude-sonnet-4-5-20250929 unless additional flags are required.
  • .github/workflows/claude-code-review.yml – keep the existing allowed-tools string but ensure the same model flag is the first argument in claude_args.

Step-by-Step Instructions

  1. Open .github/workflows/claude.yml. In the Run Claude Code step, set claude_args to --model claude-sonnet-4-5-20250929, preserving every other setting in the workflow.
  2. Open .github/workflows/claude-code-review.yml. In the Run Claude Code Review step, update the claude_args string so it starts with --model claude-sonnet-4-5-20250929 while leaving the quoted --allowed-tools list untouched.
  3. Save both workflow files, commit with a message such as Add model argument to Claude workflows, and push the branch.
  4. Open a PR describing that the general and review Claude workflows now request the Sonnet 4.5 model.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment