diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index a2cfb97..8010d31 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -6,6 +6,10 @@ on: jobs: build: + permissions: + id-token: write + contents: read + checks: write runs-on: ubuntu-latest outputs: Version: ${{ steps.gitversion.outputs.SemVer }} @@ -41,7 +45,7 @@ jobs: run: dotnet test ${{ vars.CSPROJ_TESTS_PATH }} --logger "trx;LogFileName=test-results.trx" || true - name: Test Report uses: dorny/test-reporter@v1.9.1 - if: always() + if: success() || failure() with: name: Dotnet Tests result path: "**/test-results.trx"