Skip to content

How to migrate npmToken? #31253

Closed Answered by terrymun
hankadev asked this question in Request Help
Sep 6, 2024 · 4 comments · 3 replies
Discussion options

You must be logged in to vote

For context, my original setup—which needed migration—looks like this:

"encrypted": {
  "npmToken": "wcFMA/xDdHCJBTolAQ/........."
}
"npmrc": "@<ORG_NAME>:registry=https://npm.pkg.github.com/\n//npm.pkg.github.com/:_authToken=${NPM_TOKEN}",

Note

<ORG_NAME> is replaced with the actual organization name that contains private NPM packages

I couldn't get npmToken to work again after migrating to secret and unwrapping it from the encrypted object. Renovatebot complains that it has no access to the private packages, indicating it has issues accessing the secret.

I've tried:

  • Copying the old encrypted token and pasting it as a secret ("migrate" secret)
  • Copying the unencrypted token and pasting it

Replies: 4 comments 3 replies

Comment options

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

Comment options

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

Answer selected by hankadev
Comment options

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

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
None yet
5 participants