-
-
Notifications
You must be signed in to change notification settings - Fork 176
feat(actions): add nuget trusted publishing #1277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(actions): add nuget trusted publishing #1277
Conversation
|
Note: I think leaving NuGet/login without a SHA hash is fine since it's an official Microsoft action.
|
If you know how to configure renovate to share that policy, I'd welcome that. :) |
AArnott
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Motivation
As described in the official announcement, the new Trusted Publishing feature greatly enhances package publishing security on NuGet.org.
We successfully tested this approach with our own NuGet library:
Required changes in this repository
secrets.NUGET_USERto this repository, using the NuGet.org username (profile name) of the package owner (Nerdbank in this case).secrets.NUGET_API_KEYsecret can be removed from this repository and also from the NuGet.org account if it was only used here.One-time configuration on NuGet.org
According to the documentation:
Nerdbank).dotnet).Nerdbank.GitVersioning)..github/workflows/(e.g.release.yml).This setup eliminates the need for long-lived API keys and improves the overall security of the publishing process.