Installing privately-published package without PAT #33202
Unanswered
markthethomas
asked this question in
Actions
Replies: 1 comment
-
You can't if you directly use GitHub Packages: you have to authenticate with a PAT to the language-specific package registry. Your only alternative would be to internally host an unauthenticated mirror (run an artifact server like Artifactory, or an internal unauthenticated NPM server) and configure it to proxy onto GitHub Packages. That's what we used to do, and we've improved our setup tooling and instructions to make it easy for devs to manage their PATs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
Working on a research spike focused on getting my org set up with Github Packages. We make extensive use of repos (lol), but more recently have been wanting the ability to control what's published more granularly so teams can work with things like monorepos, etc.
So here's my scenario:
.npmrc
and such to point to the GH registry.my main question: how can I set us up so that we can leverage private packages without having to have every single engineer generate a PAT?
I looked at pulling the token from
gh auth status -t
(the github CLI), but that yielded the following:Permission permission_denied: The token provided does not match expected scopes.
Any help would be hugely appreciated! The possibility of automating some release process while giving our teams better tools to slice/dice what gets published for internal tools is very enticing 👍 😄
My files:
.npmrc
:the action:
Beta Was this translation helpful? Give feedback.
All reactions