Skip to content

ci: use OIDC for NuGet package push authentication#245

Merged
guitarrapc merged 5 commits into
masterfrom
ci/nuget
May 20, 2026
Merged

ci: use OIDC for NuGet package push authentication#245
guitarrapc merged 5 commits into
masterfrom
ci/nuget

Conversation

@guitarrapc
Copy link
Copy Markdown
Contributor

This updates the build-release workflow to leverage OpenID Connect (OIDC) for authenticating with NuGet.org. The package push operation is now performed directly within the build job, replacing static API key usage with ephemeral credentials for enhanced security.

This updates the build-release workflow to leverage OpenID Connect (OIDC) for authenticating with NuGet.org. The package push operation is now performed directly within the build job, replacing static API key usage with ephemeral credentials for enhanced security.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the release pipeline to publish NuGet packages using GitHub Actions OIDC (Trusted Publishing), moving the push step into the build job and disabling NuGet push in the downstream release workflow for improved secretless authentication.

Changes:

  • Grant id-token: write to the release build job and add an OIDC-based NuGet login + dotnet nuget push step.
  • Adjust packing to include symbols and upload the package artifacts.
  • Disable NuGet push in the create-release reusable workflow call and clean up a minor formatting line in the debug workflow.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/build-release.yaml Adds OIDC permissions and performs NuGet push directly in the build job; disables downstream NuGet push.
.github/workflows/build-debug.yaml Minor whitespace cleanup; no behavioral change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/build-release.yaml
Comment thread .github/workflows/build-release.yaml
Comment thread .github/workflows/build-release.yaml
@guitarrapc guitarrapc merged commit e9d147e into master May 20, 2026
2 checks passed
@guitarrapc guitarrapc deleted the ci/nuget branch May 20, 2026 12:32
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