From 7e31251f3263041e07b70da0bf1b3783c3aebf61 Mon Sep 17 00:00:00 2001 From: Michel Oliveira <118028741+micheloliveira-com@users.noreply.github.com> Date: Fri, 26 Sep 2025 15:48:31 -0300 Subject: [PATCH 1/3] feat(actions): add nuget trusted publishing --- .github/workflows/pack.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml index c710c9006e6..ca937b0d944 100644 --- a/.github/workflows/pack.yml +++ b/.github/workflows/pack.yml @@ -10,6 +10,8 @@ on: jobs: pack: runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@v4 @@ -19,9 +21,15 @@ jobs: with: dotnet-version: 9.0.x + - name: NuGet login + uses: NuGet/login@v1 + id: nuget-login + with: + user: ${{ secrets.NUGET_USER }} + - name: Publish to Nuget env: - NUGET_API_KEY: ${{secrets.NUGET_API_KEY}} + NUGET_API_KEY: ${{steps.nuget-login.outputs.NUGET_API_KEY}} Bundle: True run: | From 6bdbf75f1e906f5a2fdbb51896d43dfcbddb2140 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 27 Sep 2025 10:52:08 +0800 Subject: [PATCH 2/3] chore: add actions sulotion folder --- BootstrapBlazor.slnx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/BootstrapBlazor.slnx b/BootstrapBlazor.slnx index 6b648496050..f48dc907300 100644 --- a/BootstrapBlazor.slnx +++ b/BootstrapBlazor.slnx @@ -1,4 +1,11 @@ + + + + + + + From 4cd4610d390a7a57e6462a85261bd726f5885f33 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 27 Sep 2025 10:52:30 +0800 Subject: [PATCH 3/3] chore: update nuget-login to login --- .github/workflows/pack.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml index ca937b0d944..36ad3c736b7 100644 --- a/.github/workflows/pack.yml +++ b/.github/workflows/pack.yml @@ -12,6 +12,7 @@ jobs: runs-on: ubuntu-latest permissions: id-token: write + contents: read steps: - uses: actions/checkout@v4 @@ -23,13 +24,13 @@ jobs: - name: NuGet login uses: NuGet/login@v1 - id: nuget-login + id: login with: user: ${{ secrets.NUGET_USER }} - name: Publish to Nuget env: - NUGET_API_KEY: ${{steps.nuget-login.outputs.NUGET_API_KEY}} + NUGET_API_KEY: ${{steps.login.outputs.NUGET_API_KEY}} Bundle: True run: |