Skip to content

Commit 933a7c3

Browse files
authored
Merge pull request #225 from UCD-SERG/ci/pin-claude-model-opus-4-7
ci(claude): revert to @v1, pin --model claude-opus-4-7
2 parents 0ff4017 + 4c09e40 commit 933a7c3

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/claude.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,7 @@ jobs:
117117
118118
- name: Run Claude Code
119119
id: claude
120-
# TEMP: swapped @v1 → @beta to surface the real underlying error
121-
# being masked by the AJV obfuscation in @v1 (see upstream
122-
# anthropics/claude-code-action#892 comment by ovceev 2026-03-10).
123-
# Revert to @v1 once we have a clear error from the next trigger.
124-
uses: anthropics/claude-code-action@beta
120+
uses: anthropics/claude-code-action@v1
125121
with:
126122
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
127123

@@ -137,7 +133,13 @@ jobs:
137133
# styler::style_pkg(), R CMD ...) — toolchain is installed above;
138134
# * file follow-up issues for work deferred out of the current PR
139135
# (gh issue create / comment / edit / view / list).
140-
claude_args: '--allowed-tools "Bash(Rscript:*)" "Bash(R:*)" "Bash(R CMD:*)" "Bash(gh issue:*)"'
136+
# Pin the model explicitly: the action's default points at
137+
# claude-sonnet-4-20250514, which is retired and returns 404 from
138+
# the API. The 404 in turn manifests as the obfuscated AJV crash
139+
# in sdk.mjs documented in upstream issue #892. Once that issue
140+
# is resolved (or the action's default is bumped), --model here
141+
# can be dropped.
142+
claude_args: '--model claude-opus-4-7 --allowed-tools "Bash(Rscript:*)" "Bash(R:*)" "Bash(R CMD:*)" "Bash(gh issue:*)"'
141143

142144
# Surface the spawned `claude` CLI's stderr in the Actions log so
143145
# SDK init crashes (e.g. run 26144000481) show a real error

0 commit comments

Comments
 (0)