anthropics / anthropics/claude-code-action

claude-code-action has incorrect $PATH

オープン
#158 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug p2
主要言語
TypeScript
スター
8.9k
フォーク
2.1k
平均マージ
3日 9時間
マージ済み PR(30日)
10

説明

## Bug Description
Running the claude-code action in a Github workflow that uses a custom image (not ubuntu:latest) that has a custom `$PATH` value, this value is not reflected by claude.

## Steps to Reproduce
1. create a Github workflow job that uses a custom container image with custom tools pre-installed and available on its $PATH.
```
jobs:
claude:
runs-on: [self-hosted, foo]
container:
image: golang:1.24-bullseye
...
```
2. ensure allowed tools include `allowed_tools: "Bash,Read,Edit,Write,Grep,Task,Replace"`
3. ask claude to: "echo the $PATH and echo the go version" (via a GH issue)

## Expected Behavior
* Running `echo $PATH` should show the complete path available to claude, e.g. `/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin`
* Running `go version` should output the go version installed in the container, e.g. `go version go1.24.3 linux/amd64`

## Actual Behavior
* Running `echo $PATH` outputs: `/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin`
* Running `go version` outputs: `go: command not found`

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。