Skip to content

Get push api keys from environment variables - #7087

Merged
zivkan merged 1 commit into
devfrom
dev-zivkan-push-apikey-env-var
Jan 30, 2026
Merged

zivkan merged 1 commit into
devfrom
dev-zivkan-push-apikey-env-var

Conversation

@zivkan

@zivkan zivkan commented Jan 28, 2026

Copy link
Copy Markdown
Member

Bug

Fixes: NuGet/Home#12539

Description

Push should read the NUGET_API_KEY and NUGET_SYBBOL_API_KEY environment variable when the api key and symbols api key are not specified on the command line. Like the NUGET_PACKAGES environment variable, the environment variable has precedence over the nuget.config settings.

The dotnet cli command help for dotnet nuget push does not come from NuGet's source code, so after this PR is merged and flows into the dotnet VMR, I'll need to create a PR on the SDK repo to update their parser's string resources.

PR Checklist

@zivkan
zivkan requested a review from a team as a code owner January 28, 2026 21:47
@zivkan
zivkan requested review from jebriede and jeffkl January 28, 2026 21:47

@jeffkl jeffkl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get push API key from environment variable

4 participants