Skip to content

Allow API keys to be used in NuGetPackageSourceCredentials env variables #14461

@ViliusS

Description

@ViliusS

NuGet Product(s) Involved

NuGet.exe, NuGet SDK

The Elevator Pitch

NuGetPackageSourceCredentials_{key} environment variables are a great way to pass source credentials in CI/CD pipelines, however it only accepts Username and Password currently. If NuGet repository is configured to require MFA or SSO this fails. This also fails when user password rotation is in place. It would be more appropriate and secure to allow API keys in these variables.

Additional Context and Details

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions