-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Use NuGet Trusted Publishing #2751
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
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.