From 8698de7775b302b5c67fa1271c26f0d0ffd61d05 Mon Sep 17 00:00:00 2001 From: Tyler Carrol Date: Sat, 29 Aug 2026 10:03:00 -0400 Subject: [PATCH 1/2] Update GitHub Actions workflow for NuGet package --- .github/workflows/tag-creates-nuget-package.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tag-creates-nuget-package.yml b/.github/workflows/tag-creates-nuget-package.yml index 933b70c..c72f385 100644 --- a/.github/workflows/tag-creates-nuget-package.yml +++ b/.github/workflows/tag-creates-nuget-package.yml @@ -16,7 +16,8 @@ jobs: permissions: contents: write # Needed for pushing commits and tags packages: write # Needed for pushing packages to GitHub Packages - steps: + id-token: write # Needed for temporary api key + steps: - name: Checkout [${{ github.ref_name }}] uses: actions/checkout@v4 with: @@ -27,6 +28,12 @@ jobs: - name: Add GitHub NuGet Source run: dotnet nuget add source --username "${{ github.repository_owner }}" --password ${{ secrets.TJC_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + - name: NuGet Temp API Key + uses: NuGet/login@v1 + id: nugetLogin + with: + user: ${{ secrets.TJC_NUGET_USER }} + - name: Setup .NET 8.0 uses: actions/setup-dotnet@v4 with: @@ -75,7 +82,7 @@ jobs: foreach ($file in $files) { echo "Pushing NuGet Package: $file" - dotnet nuget push "$file" --api-key ${{ secrets.TJC_NUGET_PUBLISH }} --source https://api.nuget.org/v3/index.json + dotnet nuget push "$file" --api-key ${{steps.nugetLogin.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json dotnet nuget push "$file" --api-key ${{ secrets.TJC_TOKEN }} --source github } From a1b0a15dabbbaa1ca6162223fd1883b454e0a1f6 Mon Sep 17 00:00:00 2001 From: TylerCarrol <25536704+TylerCarrol@users.noreply.github.com> Date: Sat, 29 Aug 2026 14:07:24 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A7=B9=20chore:=20[MegaLinter]=20Appl?= =?UTF-8?q?y=20[1]=20automatic=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/tag-creates-nuget-package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tag-creates-nuget-package.yml b/.github/workflows/tag-creates-nuget-package.yml index c72f385..c6b772d 100644 --- a/.github/workflows/tag-creates-nuget-package.yml +++ b/.github/workflows/tag-creates-nuget-package.yml @@ -17,7 +17,7 @@ jobs: contents: write # Needed for pushing commits and tags packages: write # Needed for pushing packages to GitHub Packages id-token: write # Needed for temporary api key - steps: + steps: - name: Checkout [${{ github.ref_name }}] uses: actions/checkout@v4 with: @@ -33,7 +33,7 @@ jobs: id: nugetLogin with: user: ${{ secrets.TJC_NUGET_USER }} - + - name: Setup .NET 8.0 uses: actions/setup-dotnet@v4 with: