Skip to content

ci: publish to nuget.org with Trusted Publishing instead of an API key - #36

Merged
hongjs merged 4 commits into
mainfrom
chore/nuget-trusted-publishing
Aug 23, 2026
Merged

hongjs merged 4 commits into
mainfrom
chore/nuget-trusted-publishing

Conversation

@hongjs

@hongjs hongjs commented Aug 23, 2026

Copy link
Copy Markdown
Owner

nuget.org now discourages API keys for automated publishing, and the 2.0.0 release failed with 403 on the stored one. The publish job declares the production environment and id-token: write, and NuGet/login exchanges the job's OIDC token for a key that lives only for the job. NUGET_TOKEN is no longer read from secrets.

Claude-Session: https://claude.ai/code/session_01E63oHuiKenf9H6tcgvDXVG

hongjs and others added 3 commits August 23, 2026 13:42
nuget.org now discourages API keys for automated publishing, and the 2.0.0
release failed with 403 on the stored one. The publish job declares the
`production` environment and `id-token: write`, and NuGet/login exchanges the
job's OIDC token for a key that lives only for the job. NUGET_TOKEN is no
longer read from secrets.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E63oHuiKenf9H6tcgvDXVG
Comment thread .github/workflows/publish_nuget.yml Fixed
@sonarqubecloud

Copy link
Copy Markdown

@hongjs
hongjs merged commit 33a4035 into main Aug 23, 2026
6 checks passed
@hongjs
hongjs deleted the chore/nuget-trusted-publishing branch August 23, 2026 06:56
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