anthropics / anthropics/claude-code-action

Authentication failed while installing private github packages

オープン
#159 コメント 3 件 リアクション 0 件 担当者 1 名 @ashwin-ant が担当を希望しています GitHub で見る
enhancement p1
主要言語
TypeScript
スター
8.9k
フォーク
2.1k
平均マージ
3日 9時間
マージ済み PR(30日)
10

説明

We are using example's [claude.yml]( https://github.com/anthropics/claude-code-action/blob/main/examples/claude.yml) workflow file and having npm install in allowed tools.

When ask claude to run linting, it try to run npm install but authentication failed while installing private packages. Error is "authentication
token is not provided while installing the package" We are having private packages in GitHub registry.

Do I need to setup .npmrc with PAT before claude code action step?

Can we use GITHUB_TOKEN instead of PAT while setting up .npmrc if we have allowed repository access to private package? I am not sure whether this step will work or not as GITHUB_TOKEN is generated during claude code action step.

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

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

評価

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

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

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