Skip to content

Use NuGet trusted publishing for releases - #1237

Merged
Shane32 merged 2 commits into
masterfrom
codex/nuget-trusted-publishing
Dec 5, 2026
Merged

Shane32 merged 2 commits into
masterfrom
codex/nuget-trusted-publishing

Conversation

@Shane32

@Shane32 Shane32 commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Run the release job in the Production environment and grant it id-token: write for NuGet.org authentication.
  • Exchange the GitHub OIDC token for a short-lived NuGet API key immediately before pushing packages.
  • Keep contents: write for uploading packages to the GitHub release.

Setup before the next release

  • Set the NUGET_USER Actions variable in Production to the NuGet.org profile name used for publishing.
  • Create a NuGet.org trusted publishing policy under the package owner for repository graphql-dotnet/server, workflow filename publish.yml, and environment Production. Give the policy permission to publish new versions of the release packages. NuGet setup instructions

Validation

  • git diff --check passed.
  • Parsed the workflow YAML and verified that the release trigger, artifact uploads, and short-lived key wiring are correct. Live publishing was not triggered.

@Shane32
Shane32 merged commit 1a7f6bd into master Dec 5, 2026
10 checks passed
@Shane32
Shane32 deleted the codex/nuget-trusted-publishing branch December 5, 2026 04:13
@Shane32 Shane32 self-assigned this Dec 5, 2026
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.

1 participant