Allow env var in apiKeys config #12821
Labels
Area:Authentication
Area:Settings
NuGet.Config and related issues
Functionality:Push
Priority:2
Issues for the current backlog.
Type:Feature
NuGet Product(s) Involved
dotnet.exe, NuGet SDK
The Elevator Pitch
There are places where env vars are supported, but not for those bits that are useful for ci/cd.
Please allow us to read from an env var in this part of the
nuget.config
:We could define the
ACCESS_TOKEN
env var in the pipeline, and nuget would detect it and use it for that specific nuget source.(The
nuget.config
section with username/password is not useful in a ci/cd environment - we need to use api keys.)Additional Context and Details
Using nuget in a ci/cd environment is a major pain, and has been for years (especially on linux, which is were most devops takes place). Please don't forget us.
The text was updated successfully, but these errors were encountered: