Skip to content

401 Unauthorized trying to install cross-repo internal organisation package #86645

Closed Answered by radahh-rest
radahh-rest asked this question in Packages
Discussion options

You must be logged in to vote

[SOLVED]
Even though the workflow logs show the NODE_AUTH_TOKEN, it needs to be explicitly set:

      - name: Installing
        # Skip post-install scripts here, as a malicious script could steal the auth token.
        run: pnpm install --ignore-scripts
        env:
          NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

So simple, but took so long to isolate!

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@113ll3
Comment options

Answer selected by radahh-rest
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Packages Host your dependencies, libraries, and production-ready code, right from your repository Question
2 participants