Skip to content

Switch publishing to nuget.org from api-key to short lived token#260

Merged
highbyte merged 2 commits into
masterfrom
feature/nuget-trusted-publishing
Jul 12, 2026
Merged

Switch publishing to nuget.org from api-key to short lived token#260
highbyte merged 2 commits into
masterfrom
feature/nuget-trusted-publishing

Conversation

@highbyte

Copy link
Copy Markdown
Owner

Switch publishing to nuget.org from api-key to short lived token based on NuGet Trusted Publishing source.
Ref: https://learn.microsoft.com/en-us/nuget/nuget-org/trusted-publishing

# Exchange the GitHub Actions OIDC token for a short-lived, single-use NuGet API key.
- name: NuGet login (OIDC to temporary API key)
if: steps.core_changes.outputs.should_publish == 'true'
uses: NuGet/login@v1
Comment thread .github/workflows/dotnet-push-package.yml Fixed
@sonarqubecloud

Copy link
Copy Markdown

@highbyte highbyte merged commit bf389c4 into master Jul 12, 2026
8 checks passed
@highbyte highbyte deleted the feature/nuget-trusted-publishing branch July 12, 2026 20:25
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.

2 participants