Skip to content

Conversation

@IeuanWalker
Copy link
Owner

No description provided.

Replaced static NuGet API key with a short-lived API key obtained via OpenID Connect (OIDC) for improved security. Updated the `Publish` step to use the dynamically generated API key and the `${{ env.NUGET_PATH }}` variable for `.nupkg` file paths. Added a new `NuGet login` step to handle OIDC authentication. Minor update to the `name` field in `Release.yml`.
Copy link

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

This PR attempts to improve NuGet release security by replacing a long-lived API key stored in GitHub secrets with an OIDC-based temporary API key system. However, the implementation contains critical issues that will prevent the workflow from functioning.

Key Changes:

  • Adds a new NuGet/login@v1 step to obtain a short-lived API key via OIDC
  • Replaces wildcard NuGet package pattern with environment variable reference
  • Updates API key source from GitHub secrets to step outputs

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

Replaced the use of `${{ env.NUGET_PATH }}` with a wildcard pattern `**\*.nupkg` in the "Publish" step of `Release.yml`. This ensures that all `.nupkg` files in the directory and its subdirectories are pushed to the NuGet repository, improving flexibility and reliability.
@IeuanWalker IeuanWalker merged commit 0d46b8f into master Nov 12, 2025
1 check passed
@IeuanWalker IeuanWalker deleted the NugetRelease branch November 12, 2025 17:43
@IeuanWalker IeuanWalker restored the NugetRelease branch November 12, 2025 17:43
@IeuanWalker IeuanWalker deleted the NugetRelease branch November 12, 2025 17:43
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