From ab9b4a9ea300e83e3d9eac4c06fba45e31288cc5 Mon Sep 17 00:00:00 2001 From: vivet Date: Wed, 11 Nov 2026 14:02:15 +0100 Subject: [PATCH 1/3] Changed to Trusted publishing for NuGet --- .github/workflows/build-and-deploy.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 353c54d8..5a96259c 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -15,6 +15,7 @@ jobs: permissions: contents: write packages: write + id-token: write concurrency: group: ${{ github.repository }} cancel-in-progress: false @@ -41,6 +42,13 @@ jobs: throw "Tests Failed"; }; + - name: NuGet Login (Trusted Publishing) + if: github.ref == 'refs/heads/master' + id: nuget-login + uses: NuGet/login@v1 + with: + user: ${{ secrets.NUGET_USER }} + - name: Pack and Push (NuGet.org) if: github.ref == 'refs/heads/master' shell: pwsh @@ -54,7 +62,7 @@ jobs: dotnet nuget push "nupkgs/*.nupkg" ` --source https://api.nuget.org/v3/index.json ` - --api-key ${{ secrets.NUGET_APIKEY }} ` + --api-key ${{ steps.nuget-login.outputs.NUGET_API_KEY }} ` --skip-duplicate; if ($LastExitCode -ne 0) From 8b284a5ba7e7f3abe82c6408561375810a7e5c59 Mon Sep 17 00:00:00 2001 From: vivet Date: Wed, 11 Nov 2026 14:07:13 +0100 Subject: [PATCH 2/3] Updated --- .github/workflows/build-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 5a96259c..43abb2c1 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -45,7 +45,7 @@ jobs: - name: NuGet Login (Trusted Publishing) if: github.ref == 'refs/heads/master' id: nuget-login - uses: NuGet/login@v1 + uses: NuGet/login@8d196754b4036150537f80ac539e15c2f1028841 # v1.2.0 with: user: ${{ secrets.NUGET_USER }} From c2ef35d98508c99198f29b0fa25ff0ff1aa3406e Mon Sep 17 00:00:00 2001 From: vivet Date: Wed, 11 Nov 2026 14:18:32 +0100 Subject: [PATCH 3/3] Updated --- Directory.Build.props | 1 + 1 file changed, 1 insertion(+) diff --git a/Directory.Build.props b/Directory.Build.props index ec56a873..e7fde10b 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -25,6 +25,7 @@ This package is part of the Nano Library, a set of reusable .NET libraries for building microservice applications. Nano addresses common non-business concerns such as logging, persistence, messaging, validation, and documentation, while remaining fully configurable and extensible, so applications can stay focused on business logic. See https://github.com/Nano-Core/Nano.Library for details. - Fixed Entity events not being declared as DIRECT exchange, ignoring the routing key + - Changed to Trusted publishing for NuGet git master