Skip to content

Use OIDC to authenticate with NuGet.org#17

Merged
centeredgebot[bot] merged 4 commits intomainfrom
nuget-oidc
Nov 27, 2025
Merged

Use OIDC to authenticate with NuGet.org#17
centeredgebot[bot] merged 4 commits intomainfrom
nuget-oidc

Conversation

@brantburnett
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings November 27, 2025 14:53
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR modernizes the NuGet.org authentication mechanism by migrating from a static API key stored in GitHub Secrets to OIDC (OpenID Connect) authentication, which provides temporary API keys with enhanced security. The change adds the necessary OIDC permissions to the workflow and introduces a login step before publishing packages.

Key changes:

  • Added OIDC permissions (id-token: write) to enable GitHub's OIDC provider
  • Introduced NuGet/login@v1 action to obtain temporary API keys via OIDC
  • Updated NuGet.org push command to use the temporary API key from the login action output

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@brantburnett
Copy link
Contributor Author

/merge

@centeredgebot centeredgebot bot merged commit 6286666 into main Nov 27, 2025
6 checks passed
@centeredgebot centeredgebot bot deleted the nuget-oidc branch November 27, 2025 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants