-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependabot w/ pnpm and private feed returns ERR_PNPM_FETCH_401 #7731
Comments
I did some more testing. If I delete my |
@deivid-rodriguez could you possibly offer some insight here? |
Thanks for the ping @mburumaxwell! I'm currently working on this. Your patch at #8091 does address part of the problem, but there are some other issues where Dependabot is unable to write a proper npmrc file in some situations (like here). Do you mind if I use your PR as a base for my changes? |
@deivid-rodriguez sure you can use it |
@AndrewCraswell Would you be able to check whether #8094 fixes your issue? I think it's going to be a bit of a mess to verify but maybe @mburumaxwell can help? I think you'll need to clone the PR, rebuild the npm updater ( |
@mburumaxwell Any suggestions for how we could run the patch against our Azure DevOps pipeline to verify the changeset? |
I merged my PR so it should be easier to try it now. Please let me know if it indeed worked! |
I did my test and found that it takes quite a lot of time to move through one dependency update as per #8094 (comment). @AndrewCraswell , you can test this using a temporary image from tinglesoftware/dependabot-azure-devops#829. The image tag is If you are using the extension: steps:
- task: dependabot@1
inputs:
dockerImageTag: '1.21.1-pullrequest0829-0034' |
I've run with the image tag and it worked! It took 16 minutes to open 3 PRs which is fine for us since we only open 3 at a time. :D |
@AndrewCraswell using
This is only temporary as we await an official fix. |
Is there an existing issue for this?
Package ecosystem
npm (pnpm)
Package manager version
8.6.11
Language version
Node v18.15.0
dependabot.yml content
What you expected to see, versus what you actually saw
We have a repository in Azure Devops which uses a single private feed. When running our dependabot pipeline it successfully scans the first package, detects the update, and opens a PR. Then starting with the second package we begin seeing failures. In the logs below
@1js/react-ecs-client
is scanned and finds no update (because it already opened the PR in a previous run). But@azure/storage-file-datalake
detects that an update is required, but fails before opening the PR.I'm not understanding how the first request could succeed, yet subsequent request would suddenly receive a 401. The PAT token I've used is for my personal account, and I'm able to perform a
pnpm install
locally just fine.Images of the diff or a link to the PR, issue, or logs
Full dependabot pipeline logs
Smallest manifest that reproduces the issue
No response
The text was updated successfully, but these errors were encountered: