Skip to content

Commit 47df6aa

Browse files
Generate SBOM (#2640)
Generate an SBOM for the build artifacts.
1 parent 52844cc commit 47df6aa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,14 @@ jobs:
136136
path: eng/signing
137137
if-no-files-found: error
138138

139+
- name: Generate SBOM
140+
uses: anchore/sbom-action@e11c554f704a0b820cbf8c51673f6945e0731532 # v0.20.0
141+
with:
142+
artifact-name: build-${{ matrix.os_name }}.spdx.json
143+
output-file: ./artifacts/build.spdx.json
144+
path: ./artifacts/bin
145+
upload-release-assets: ${{ runner.os == 'Windows' }}
146+
139147
- name: Get .NET tools versions
140148
id: get-dotnet-tools-versions
141149
shell: pwsh

0 commit comments

Comments
 (0)