anthropics / anthropics/claude-code-action

Authentication failed while installing private github packages

未关闭
#159 3 条评论 0 个 reaction 已指派 1 人 已被 @ashwin-ant 认领 在 GitHub 查看
enhancement p1
主要语言
TypeScript
星标
8.9k
派生
2.1k
平均合并
3 天 9 小时
30 天内合并 PR
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 摘要。