feat(actions): add nuget trusted publishing#2299
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
Description
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 (Ubiquitous 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:
Ubiquitous).restsharp).RestSharp)..github/workflows/(e.g.build-dev.yml).This setup eliminates the need for long-lived API keys and improves the overall security of the publishing process.
Purpose
This pull request is a:
Checklist