anthropics / anthropics/claude-code-action

Claude Code stopped working after adding the path parameter in the repository checkout step

Open
#233 4 comments 0 reactions 0 assignees View on GitHub
bug p2
Dominant language
TypeScript
Stars
8.9k
Forks
2.1k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

The Claude Code stopped working after adding the path parameter in the repository checkout step.
I also tried running cd into the target path before executing Claude, but it didn’t help.
Do you have any suggestions or solutions to fix this issue?

env:
SUB_FOLDER_PATH: sub_folder

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: ${{ env.SUB_FOLDER_PATH }}
fetch-depth: 1
- name: Code Review
uses: anthropics/claude-code-action@beta
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
direct_prompt: |
Please review this pull request

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.