diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 44a00d0b5..b620d6372 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -33,8 +33,8 @@ jobs: with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} - # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4) - # model: "claude-opus-4-20250514" + # Pin the model so a retired default cannot break the workflow + claude_args: "--model claude-sonnet-5" # Direct prompt for automated review (no @claude mention needed) prompt: | diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 38466bff5..cba067f8f 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -32,7 +32,7 @@ jobs: - name: Run Claude Code id: claude - uses: anthropics/claude-code-action@beta + uses: anthropics/claude-code-action@v1 with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} @@ -40,8 +40,8 @@ jobs: additional_permissions: | actions: read - # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4) - # model: "claude-opus-4-20250514" + # Pin the model so a retired default cannot break the workflow + claude_args: "--model claude-sonnet-5" # Optional: Customize the trigger phrase (default: @claude) # trigger_phrase: "/claude"