anthropics / anthropics/claude-code-action

Claude Code Action failing with SDK crash (Feb 23, 2026) - pinned SHA workaround no longer works

Abierto
#965 4 comentarios 17 reacciones 0 asignados Ver en GitHub
area:installation bug p1 provider:1p
Lenguaje dominante
TypeScript
Estrellas
8.9k
Forks
2.1k
Merge medio
3 d 9 h
PR fusionados (30 d)
10

Descripción

## Summary

As of February 23, 2026, the claude-code-action is failing with the known AJV/SDK crash issue. **The previously documented workaround of pinning to SHA `01e756b34ef7a1447e9508f674143b07d20c2631` no longer works.**

## Environment

- **Action versions tested:**
- `anthropics/claude-code-action@v1` (installs Claude Code v2.1.49)
- `anthropics/claude-code-action@01e756b34ef7a1447e9508f674143b07d20c2631` (installs Claude Code v2.1.25)
- **Auth method:** `anthropic_api_key` (organization secret)
- **Runner:** ubuntu-latest
- **Repos affected:** Multiple repos in `digital-clipboard` organization

## Error Details

Both action versions fail with identical error pattern:

```
Installing Claude Code v2.1.25... (or v2.1.49)
Setting up Claude Code...
✔ Claude Code successfully installed!
Running Claude Code via SDK (full output hidden for security)...
"message": "Claude Code initialized",
"model": "claude-sonnet-4-5-20250929"
}
{
"type": "result",
"subtype": "success",
"is_error": true,
"duration_ms": 161,
"num_turns": 1,
"total_cost_usd": 0,
"permission_denials": []
}
SDK execution error: 14 | depsCount: ${Q},
15 | deps: ${$}}`};var Pj={keyword:"dependencies"...
error: Claude Code process exited with code 1
```

Key indicators:
- `total_cost_usd: 0` - No API calls made before crash
- `is_error: true` with `subtype: "success"` - Contradictory
- AJV validation error in minified SDK code
- Crash occurs immediately after initialization

## Workflow Configuration (Minimal)

```yaml
- uses: anthropics/claude-code-action@01e756b34ef7a1447e9508f674143b07d20c2631
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
trigger_phrase: "@claude"
prompt: "Review this PR"
```

## What We've Tried

1. ✅ Using `@v1` tag - fails
2. ✅ Pinning to SHA `01e756b` (documented workaround from #892) - **also fails**
3. ✅ Minimal configuration (just API key, trigger, prompt) - fails
4. ✅ Removing `.claude/settings.local.json` from repo - still fails
5. ✅ Testing on multiple repositories - all fail

## Relationship to Existing Issues

This appears to be related to:
- #892 - SDK execution error in Agent SDK 0.2.27+
- #911 - Claude Code process exits with code 1 during PR review

However, the workaround from #892 (pinning to older SHA) **no longer resolves the issue** as of today.

## Impact

PR review automation is completely broken across all repositories. This is a P1/showstopper affecting CI/CD pipelines.

## Workflow Run Examples

- Failed with v1: https://github.com/digital-clipboard/st-james-place-accounts-ts/actions/runs/22296183011
- Failed with pinned SHA: https://github.com/digital-clipboard/st-james-place-accounts-ts/actions/runs/22296541406

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.