Skip to content

Publish to NuGet.org via trusted publishing - #175

Merged
glopesdev merged 1 commit into
harp-tech:mainfrom
glopesdev:trusted-publishing
Nov 3, 2026
Merged

glopesdev merged 1 commit into
harp-tech:mainfrom
glopesdev:trusted-publishing

Conversation

@glopesdev

Copy link
Copy Markdown
Contributor

The NuGet.org publishing job now uses trusted publishing. It requests an OIDC token, exchanges it through NuGet/login for a short-lived API key, and pushes with that key in place of the stored NUGET_API_KEY.

Publishing relies on a trusted publishing policy on nuget.org for this repository, the Harp.Generators.yml workflow and the public-release environment, and on a NUGET_USER secret holding the nuget.org username of the policy owner. The stored API key can be removed once a release has published successfully.

The NuGet.org publishing job now requests an OIDC token and exchanges
it for a short-lived API key, in place of the stored key.
@glopesdev glopesdev added the feature New planned feature label Nov 3, 2026
@glopesdev
glopesdev merged commit 414b883 into harp-tech:main Nov 3, 2026
9 checks passed
@glopesdev
glopesdev deleted the trusted-publishing branch November 3, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New planned feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant