Skip to content

ci: NuGet trusted-publishing (OIDC) workflow - #5

Merged
tbbuck merged 1 commit into
masterfrom
ci/nuget-trusted-publishing
Jun 23, 2026
Merged

tbbuck merged 1 commit into
masterfrom
ci/nuget-trusted-publishing

Conversation

@tbbuck

@tbbuck tbbuck commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Adds a publish-nuget.yml workflow that publishes the package via NuGet.org Trusted Publishing (OIDC) — no long-lived API key stored anywhere.

  • Triggers on a published GitHub Release (or manual workflow_dispatch).
  • Uses id-token: write + the NuGet/login action to mint a short-lived token, then dotnet nuget push.
  • Requires a one-time trusted-publishing policy on nuget.org and a NUGET_USER repo variable (documented in the workflow header).

Publish the package via NuGet.org Trusted Publishing instead of a long-lived
API key: a GitHub Release triggers a workflow that mints a short-lived token
through OIDC (id-token: write) using the NuGet/login action, then pushes the
packed .nupkg. Requires a one-time trusted-publishing policy on nuget.org and
a NUGET_USER repository variable (documented in the workflow header).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xW2zhMvrJChpY58hfJBeZ
@tbbuck
tbbuck merged commit 4a061c5 into master Jun 23, 2026
2 of 3 checks passed
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.

1 participant