Skip to content

Publish to NuGet with trusted publishing - #6

Closed
stphnwlsh wants to merge 1 commit into
mainfrom
chore/nuget-trusted-publishing
Closed

stphnwlsh wants to merge 1 commit into
mainfrom
chore/nuget-trusted-publishing

Conversation

@stphnwlsh

@stphnwlsh stphnwlsh commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Replace the long-lived NUGET_API_KEY secret with NuGet trusted publishing. The template job requests an OIDC token (id-token: write) and NuGet/login (pinned to a commit SHA) exchanges it for a short-lived API key used by dotnet nuget push.
  • The login and publish steps only run on main.
  • Needs a NUGET_USER secret (the nuget.org profile name) and a trusted publishing policy on nuget.org for this repo and workflow.

Related issues

None

@codecov

codecov Bot commented Oct 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.71%. Comparing base (091b481) to head (e80647d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #6   +/-   ##
=======================================
  Coverage   99.71%   99.71%           
=======================================
  Files          39       39           
  Lines         356      356           
  Branches        8        8           
=======================================
  Hits          355      355           
  Partials        1        1           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stphnwlsh stphnwlsh closed this Oct 27, 2026
@stphnwlsh
stphnwlsh deleted the chore/nuget-trusted-publishing branch October 27, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant