From 4fcecd0b3a852f302a5192b894e35e356a771b89 Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Wed, 18 Jun 2025 09:00:13 +0100 Subject: [PATCH] Refactor SBOM generation - Only generate on Windows. - Rename file. --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ccf14182..f6746533 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -82,11 +82,12 @@ jobs: - name: Generate SBOM uses: anchore/sbom-action@9246b90769f852b3a8921f330c59e0b3f439d6e9 # v0.20.1 + if: runner.os == 'Windows' with: - artifact-name: build-${{ matrix.os-name }}.spdx.json - output-file: ./artifacts/build.spdx.json + artifact-name: xunit-logging.spdx.json + output-file: ./artifacts/xunit-logging.spdx.json path: ./artifacts/bin - upload-release-assets: ${{ runner.os == 'Windows' }} + upload-release-assets: true - name: Attest artifacts uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2.4.0