Skip to content

One private package gets "404 Not Found" during workflow NPM install step; others fine #26599

Answered by mellis481
mellis481 asked this question in Packages
Discussion options

You must be logged in to vote

We were able to figure out the issue and I’m going to share it here because it’s a really sneaky one. :slight_smile:

This topic clued us in to the answer: Token with "repo" scope to install private packages? - #2 by jcansdale. Specifically this part (emphasis mine):

What I suggest you do is create a machine-user 11 account that has access to the private repositories you need to share packages from (it only needs read access). You can then generate PATs with the read:package scope from this account.

So in my case, my organization creates secrets under a “system user” account and I had not given this user permission to my one repo.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Packages Host your dependencies, libraries, and production-ready code, right from your repository Product Feedback
1 participant