Automatically upload new releases to NuGet#18
Conversation
PR SummaryMedium Risk Overview It now runs on
Reviewed by Cursor Bugbot for commit 2e979ff. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Publish job authenticates but never builds or pushes
- Restored checkout, .NET setup, build, pack, and NuGet push steps using the OIDC API key in the publish job.
Or push these changes by commenting:
@cursor push ae94d43017
Preview (ae94d43017)
diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml
--- a/.github/workflows/config.yml
+++ b/.github/workflows/config.yml
@@ -196,16 +196,33 @@
if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
+ contents: read
id-token: write
steps:
+ - uses: actions/checkout@v5
+
+ - name: Install .NET
+ uses: actions/setup-dotnet@v5
+ with:
+ dotnet-version: ${{ env.DOTNET_VERSION }}
+
+ - name: Build project binaries
+ run: dotnet build -c Release
+
+ - name: Create CI Artifacts directory
+ run: mkdir net_connector
+
+ - name: Build NuGet package
+ run: dotnet pack -c Release --output net_connector -p:PackageVersion=${{ env.CONNECTOR_VERSION }}
+
- name: NuGet login (OIDC → temp API key)
uses: NuGet/login@v1
id: login
with:
user: ${{ secrets.NUGET_USER }}
- - name: Confirm NuGet login worked
+ - name: Publish NuGet package
shell: bash
env:
NUGET_API_KEY: ${{ steps.login.outputs.NUGET_API_KEY }}
@@ -216,4 +233,4 @@
fi
echo "NuGet Trusted Publishing login succeeded."
- echo "Temporary API key was returned, but it was not printed."
\ No newline at end of file
+ dotnet nuget push "net_connector/*.nupkg" --api-key "$NUGET_API_KEY" --source https://api.nuget.org/v3/index.json --skip-duplicate
\ No newline at end of fileYou can send follow-ups to the cloud agent here.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 2e979ff. Configure here.


setting up CI for automatic uploading of new releases to NuGet following this guide -- https://learn.microsoft.com/en-us/nuget/nuget-org/trusted-publishing