Skip to content

Use NuGet Trusted Publishing#266

Merged
martincostello merged 2 commits intomainfrom
nuget-trusted-publishing
Sep 24, 2025
Merged

Use NuGet Trusted Publishing#266
martincostello merged 2 commits intomainfrom
nuget-trusted-publishing

Conversation

@martincostello
Copy link
Copy Markdown
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.
Comment thread .github/workflows/ci.yml Outdated
Update NuGet/login action to v1.1.0.
Copilot AI review requested due to automatic review settings September 18, 2025 09:27
Copy link
Copy Markdown

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

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

3 participants