Skip to content

[CI] Publish packages to NuGet through trusted publishing - #49

Merged
Nice3point merged 1 commit into
developfrom
build/nuget-trusted-publishing
Sep 28, 2026
Merged

Nice3point merged 1 commit into
developfrom
build/nuget-trusted-publishing

Conversation

@Nice3point

@Nice3point Nice3point commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

Summary of the Pull Request

What is this about:

Publishes the NuGet packages with a short-lived key issued through trusted publishing.

Description:

What changed

  • The release workflow exchanges a GitHub OIDC token for a one-hour NuGet key and passes it to the build in place of the stored API key.
  • The workflow token holds only the permissions the release uses: write access to contents for the GitHub release, read access to packages for the internal feed, and the OIDC token.

Where to look

  • The permissions are declared at the workflow level. Every permission left out drops to none, and a future step that calls another GitHub API fails until the block grows.

How verified

  • Not run: the workflow runs on a tag push alone, and the next release is the first run.

Open questions

  • The trusted publishing policy on nuget.org is temporarily active. A release within its 7-day window locks it to this repository; a release after the window needs the policy reactivated first.
  • The NUGET_API_KEY secret stays until the first release passes, and is removed afterwards.

@Nice3point
Nice3point marked this pull request as ready for review September 28, 2026 08:05
Copilot AI lite review requested due to automatic review settings September 28, 2026 08:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Nice3point
Nice3point merged commit 19248fb into develop Sep 28, 2026
1 check passed
@Nice3point
Nice3point deleted the build/nuget-trusted-publishing branch September 28, 2026 08:05
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.

2 participants