anthropics / anthropics/claude-code-action

Broken CLAUDE_WORKING_DIR support

Abierto
#315 0 comentarios 10 reacciones 0 asignados Ver en GitHub
bug p1
Lenguaje dominante
TypeScript
Estrellas
8.9k
Forks
2.1k
Merge medio
3 d 9 h
PR fusionados (30 d)
10

Descripción

**Describe the bug**
The claude-code-action supports setting `CLAUDE_WORKING_DIR` to switch to a different directory before running claude. This is important for monorepos or repositories with nested CLAUDE.md files, to ensure the CI job picks up all the relevant context.

This worked by explicitly cd'ing to `$CLAUDE_WORKING_DIR` before running claude. This code still exists in the base action: https://github.com/anthropics/claude-code-action/blob/main/base-action/action.yml#L124-L128

However, after the changes in https://github.com/anthropics/claude-code-action/pull/285 the working directory is onl set in the "inner" action, but not when running the "outer" action, resulting in claude being run from the top-level directory always.

I believe the cd to `$CLAUDE_WORKING_DIR` should be moved from the base action to the outer action to fix this.

**Expected behavior**
Claude should run in `$CLAUDE_WORKING_DIR`

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.