Merged
Conversation
Replace the long-lived NUGET_APIKEY secret with short-lived, single-use API keys obtained by exchanging a GitHub Actions OIDC token at nuget.org. Requires a Trusted Publishing policy configured on nuget.org for this repo + `release.yml`, and a `NUGET_USER` repo variable set to the nuget.org profile name of a member of the policy-owning org. See https://learn.microsoft.com/en-us/nuget/nuget-org/trusted-publishing beep boop
emyller
approved these changes
Apr 17, 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.
In this PR, we add Nuget trusted publishing.
Prerequisites (done out-of-band)
Flagsmith, repoflagsmith-dotnet-client, workflowrelease.yml, no environment.Flagsmithorg added as co-owner of allFlagsmith.*packages published by this workflow.NUGET_USERset.Test plan
Publish Releaseworkflow'sNuGet login (OIDC -> temp API key)step succeeds and masks the output.dotnet nuget pushsucceeds for allFlagsmith.*.nupkg(excludingFlagsmith.Engine*per existing artifact filter).NUGET_APIKEYon nuget.org and delete the GitHub secret.Rollback
Restore
NUGET_APIKEYsecret and revert this PR — one-minute operation.