Skip to content

Use trusted publishing for NuGet releases#369

Merged
jsturtevant merged 1 commit into
mainfrom
jsturtevant/nuget-trusted-publishing
Jun 12, 2026
Merged

Use trusted publishing for NuGet releases#369
jsturtevant merged 1 commit into
mainfrom
jsturtevant/nuget-trusted-publishing

Conversation

@jsturtevant

@jsturtevant jsturtevant commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

NuGet releases can avoid relying on a long-lived API key secret by using GitHub OIDC to request a short-lived NuGet API key at publish time.

This updates the publish workflow to grant id-token: write, authenticate with NuGet/login pinned to the full commit hash, and use the action output when pushing the generated package.

https://learn.microsoft.com/en-us/nuget/nuget-org/trusted-publishing

note: unfortunately you have to use your own username but the trusted publishing registration owner is bytecodealliance

Comment thread .github/workflows/publish.yml
@jsturtevant jsturtevant merged commit 2026414 into main Jun 12, 2026
6 checks passed
@martindevans martindevans deleted the jsturtevant/nuget-trusted-publishing branch June 13, 2026 00:18
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