NuGet feed credentials configured with only username/password raise 401 errors in repository_finder
and metadata_finder
#10357
Labels
L: dotnet:nuget
NuGet packages via nuget or dotnet
L: git:submodules
Git submodules
T: bug 🐞
Something isn't working
Is there an existing issue for this?
Package ecosystem
NuGet
Package manager version
v0.267.0
Language version
No response
Manifest location and content before the Dependabot update
WebApplication1.csproj
https://github.com/rhyskoedijk/dependabot-tests/blob/main/NetFx-PrivateFeeds/WebApplication1.csproj
packges.config
https://github.com/rhyskoedijk/dependabot-tests/blob/main/NetFx-PrivateFeeds/packages.config
dependabot.yml content
Executed using command line:
Equivalent config is:
Updated dependency
Telerik.Reporting from 10.1.16.615 to 15.1.21.616
What you expected to see, versus what you actually saw
I expect no authentication errors when querying the nuget feeds using username/password.
I actually see 401 errors.
The code for
repository_finder
andmetadata_finder
currently only work with feeds configured usingtoken
. The documentation on configuration options for private registries and #8927 (comment) suggest that username/password should work.Updater logs:
Logged auth errors for the Azure DevOps private nuget-feed:
Logged auth errors for the Telerik nuget-feed:
Logged auth errors for the metadata finder:
Native package manager behavior
No response
Images of the diff or a link to the PR, issue, or logs
No response
Smallest manifest that reproduces the issue
Repo:
https://github.com/rhyskoedijk/dependabot-tests/tree/main/NetFx-PrivateFeeds
Dry-run command:
The text was updated successfully, but these errors were encountered: