Does not support private npm registries with auth is this true? #5024
Unanswered
Sean Wells (swells)
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
On these OneBranch compliant CI/CD pipelines we must use a private internal authenticated npm registry. Autorest fails tiring to acquire autorest-core's version during bootstrapping. Autorest should support this as a typical use-case and use
.npmrcon private authenticated npm registries.Can this be done, if not there is no way to have the required network isolation and a private npm reg that requires authentication.
Here are the pipeline steps:
network isolation
Npm Authenticate via ADO
.npmrc
Set env and run autorest
Failure on getting azure-core version
Additional context
I think what is happening is after setting the env
autorest_registryautorest'ss use ofpacotemanifest fetch to get the azure-core version fails since it can not properly authenticate:There is no way to deal with the _auth scopes from .npmrc and
pacote.manifest. This is my speculation anyhow since this is difficult to debug this in CI pipelines.All reactions