401 Unauthorized trying to install cross-repo internal organisation package #86645
-
Select Topic AreaQuestion BodyCan anyone assist me working out where I've gone wrong here? I'm trying to install an internal package, but always get Issue Summary401 Unauthorized trying to install cross-repo internal organisation package
ContextPublished package (details taken from package overview):
Dependant repo:.npmrc:
package.json (snip)
Build job:
setup-node action
pnpm config output from build step:
ResultAction log:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
(replying to my own post) Is this statement on page https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry relevant? It seems to imply that a GitHub action requires a configured secret user-based PAT to function?
But it mentions 'private' repos, and ours is internal. And the next section contradicts?
|
Beta Was this translation helpful? Give feedback.
-
[SOLVED]
So simple, but took so long to isolate! |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
[SOLVED]
Even though the workflow logs show the NODE_AUTH_TOKEN, it needs to be explicitly set:
So simple, but took so long to isolate!