Skip to content

Commit 50f958c

Browse files
Refactor SBOM generation
- Only generate on Windows. - Rename file.
1 parent 3666116 commit 50f958c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,12 @@ jobs:
8282

8383
- name: Generate SBOM
8484
uses: anchore/sbom-action@9246b90769f852b3a8921f330c59e0b3f439d6e9 # v0.20.1
85+
if: runner.os == 'Windows'
8586
with:
86-
artifact-name: build-${{ matrix.os-name }}.spdx.json
87-
output-file: ./artifacts/build.spdx.json
87+
artifact-name: xunit-logging.spdx.json
88+
output-file: ./artifacts/xunit-logging.spdx.json
8889
path: ./artifacts/bin
89-
upload-release-assets: ${{ runner.os == 'Windows' }}
90+
upload-release-assets: true
9091

9192
- name: Attest artifacts
9293
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2.4.0

0 commit comments

Comments
 (0)