Support for NuGet feed credentials with only username/password in repository_finder
and metadata_finder
#10358
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What are you trying to accomplish?
Fix #10357.
When running the updater outside of the GitHub environment, the following should work without throwing 401 errors:
Documentation on configuration options for private registries and #8927 (comment) suggest nuget-feed registries using username/password should work, but they don't; See #10357 for detailed logs.
I understand that there might be some magic sauce happening within the GitHub environment and maybe I'm missing something obvious here. Other package mangers currently consider username/password in registry auth, but not NuGet. e.g.
Anything you want to highlight for special attention from reviewers?
Is there is a better way to pass username/password auth to the updater? If yes, can it be used when running dependabot-core outside of the GitHub environment?
I'm not very experienced with RSpec, so any advice on the unit tests would be appreciated.
How will you know you've accomplished your goal?
The above configuration doesn't throw 401 errors during updates.
Checklist