Repository navigation
Enable NuGet trusted publishing - #391
Merged
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The publishing action uses a mutable tag, allowing unreviewed code changes with access to the publishing OIDC token and temporary NuGet key.
2 open issues
What changed in this PR
Migrates nuget.org releases from a long-lived API key to trusted publishing through GitHub OIDC, preserving environment approval, package signing, and GitHub Packages publishing.
Changes:
- Grants the publishing job OIDC permission and adds NuGet authentication.
- Uses the temporary API key and fails publication if no key is returned.
- Documents identity configuration, trust policy setup, and release verification.
| File | Description |
|---|---|
| docs/engineering/procedures/nuget-trusted-publishing.md | Documents trusted publishing setup and verification. |
| .github/workflows/release.yml | Replaces the stored NuGet key with OIDC-based authentication and a missing-key guard. |
Review effort: Balanced
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
damianh
enabled auto-merge
November 4, 2026 22:04
damianh
disabled auto-merge
November 4, 2026 22:04
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
damianh
enabled auto-merge (squash)
November 4, 2026 22:06
damianh
disabled auto-merge
November 4, 2026 22:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


What issue does this PR address?
Replace the long-lived nuget.org API key with NuGet trusted publishing via GitHub OIDC. The release job now fails closed if trusted authentication does not provide a temporary key, while preserving the existing environment approval, signing, and GitHub Packages publishing. Adds a procedure for configuring
NUGET_USER, the nuget.org trust policy, and release verification.Validation:
go run github.com/rhysd/actionlint/cmd/actionlint@latest .github/workflows/release.ymlpassed;git diff --checkpassed.