anthropics / anthropics/claude-code-action

Authentication failed while installing private github packages

Ouverte
#159 3 commentaires 0 réactions 1 personne assignée Réclamée par @ashwin-ant Voir sur GitHub
enhancement p1
Langage dominant
TypeScript
Étoiles
8.9k
Forks
2.1k
Merge moyen
3 j 9 h
PR mergées (30 j)
10

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.