Use NuGet Trusted Publishing#2751
Conversation
Switch to using GitHub OIDC for pushing packages to NuGet.org with Trusted Publishing.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2751 +/- ##
=======================================
Coverage 96.15% 96.15%
=======================================
Files 309 309
Lines 7118 7118
Branches 1008 1008
=======================================
Hits 6844 6844
Misses 221 221
Partials 53 53
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Pull Request Overview
This PR switches from using a static API key to GitHub OIDC (OpenID Connect) for NuGet package publishing through GitHub's Trusted Publishing feature. This improves security by eliminating the need to store long-lived secrets.
- Adds OIDC token permissions to the publish job
- Integrates NuGet/login action for authentication via Trusted Publishing
- Replaces static API key with dynamically generated token from the login step
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Switch to using GitHub OIDC for pushing packages to NuGet.org with Trusted Publishing.
Resolves #2742.