Skip to content

Commit 9dac189

Browse files
ymc9claude
andauthored
ci: move @claude comment workflow to claude-code-action v1 and pin model (#2847)
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 73f8352 commit 9dac189

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎.github/workflows/claude-code-review.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
with:
3434
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
3535

36-
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
37-
# model: "claude-opus-4-20250514"
36+
# Pin the model so a retired default cannot break the workflow
37+
claude_args: "--model claude-sonnet-5"
3838

3939
# Direct prompt for automated review (no @claude mention needed)
4040
prompt: |

‎.github/workflows/claude.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ jobs:
3232

3333
- name: Run Claude Code
3434
id: claude
35-
uses: anthropics/claude-code-action@beta
35+
uses: anthropics/claude-code-action@v1
3636
with:
3737
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
3838

3939
# This is an optional setting that allows Claude to read CI results on PRs
4040
additional_permissions: |
4141
actions: read
4242
43-
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
44-
# model: "claude-opus-4-20250514"
43+
# Pin the model so a retired default cannot break the workflow
44+
claude_args: "--model claude-sonnet-5"
4545

4646
# Optional: Customize the trigger phrase (default: @claude)
4747
# trigger_phrase: "/claude"

0 commit comments

Comments
 (0)