From d9ac5c7bdf41e0ce3e0b3bd89cc2a1c32d0d56e4 Mon Sep 17 00:00:00 2001 From: Jared Parsons Date: Thu, 18 Jun 2026 14:01:39 -0700 Subject: [PATCH] Fix: pass OIDC API key to nuget push command The NuGet/login step outputs the API key but the push command wasn't using it. Add step id and reference the output via --api-key. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d116604..ab6484f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -56,12 +56,13 @@ jobs: run: dotnet pack -p:PackageOutputPath="${GITHUB_WORKSPACE}/packages" -p:IncludeSymbols=false -p:RepositoryCommit=${GITHUB_SHA} -p:PackageVersion="${{ steps.version.outputs.version }}" -c Release - name: NuGet login (OIDC) + id: nuget-login uses: NuGet/login@v1 with: user: jaredpar - name: Publish NuPkg Files - run: dotnet nuget push "$GITHUB_WORKSPACE/packages/*.nupkg" -s https://api.nuget.org/v3/index.json --skip-duplicate + run: dotnet nuget push "$GITHUB_WORKSPACE/packages/*.nupkg" --api-key ${{ steps.nuget-login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate - name: Create Tag and Release env: