Skip to content

Conversation

martincostello
Copy link
Member

@martincostello martincostello commented Sep 11, 2025

Changes

Switch to using GitHub OIDC for pushing packages to NuGet.org with Trusted Publishing.

Resolves #264.

TODO

  • Wait for Trusted Publishing to be available for our NuGet packages
  • Create Trusted Publishing policy in NuGet.org
  • Add nuget:user secret to Vault

Merge requirement checklist

  • Unit tests added/updated
  • CHANGELOG.md updated
  • Changes in public API reviewed (if applicable)

Switch to using GitHub OIDC for pushing packages to NuGet.org with Trusted Publishing.

Resolves #264.
Update NuGet/login action to v1.1.0.
@Copilot Copilot AI review requested due to automatic review settings September 18, 2025 09:27
Copy link

@Copilot 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 switches the NuGet package publishing workflow from using API tokens to GitHub OIDC with Trusted Publishing, which provides better security by eliminating the need to store long-lived API keys.

  • Replaces vault secret retrieval from nuget:token to nuget:user
  • Introduces the NuGet/login action to authenticate using OIDC
  • Updates the environment variable source for the API key to use the output from the NuGet login action

@martincostello martincostello merged commit 32b8893 into main Sep 24, 2025
20 checks passed
@martincostello martincostello deleted the nuget-trusted-publishing branch September 24, 2025 13:28
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.

Switch to NuGet trusted publishing

2 participants