Repository navigation
Fix NuGet trusted publishing for release tags - #156
Merged
dfederm merged 1 commit intoOct 15, 2026
Merged
Conversation
Copilot-Session: 07e784f1-cfc4-4c30-b264-58e82bb4b2cf
dfederm
deleted the
dfederm/fix-referencetrimmer-nuget-trusted-publishing
branch
October 15, 2026 18:18
dfederm
restored the
dfederm/fix-referencetrimmer-nuget-trusted-publishing
branch
October 15, 2026 18:18
This was referenced Oct 15, 2026
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.
Summary
The v3.5.12 release failed to publish because the workflow had OIDC permission but did not obtain an API key for
dotnet nuget push. This addsNuGet/login@v1to exchange the GitHub token for a short-lived NuGet.org key and passes that key to the push, without adding a long-lived secret.Why this is safe
v*tags; build, test, NuGet.org source, and--skip-duplicatebehavior are unchanged.Validation
actionlintv1.7.12git diff --checkLive token exchange and package publication were not tested; they require a tag-triggered release against the configured NuGet.org trusted-publisher policy.