Skip to content

Commit a4d1ec5

Browse files
Generate SPDX 3.0 SBOM as it's the newer standard
1 parent c39551e commit a4d1ec5

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/sbom.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858

5959
# -b: the shipped artifact (nupkg) gets listed with its hash in the SBOM's files section
6060
# -bc: dependency detection scans the project dir (NuGet + npm)
61+
# -mi SPDX:3.0: emit the SBOM in SPDX 3.0 format (output goes to _manifest/spdx_3.0)
6162
- name: Generate SBOM
6263
working-directory: .config/sbom-tool
6364
run: >
@@ -68,13 +69,14 @@ jobs:
6869
-pv ${{ env.PACKAGE_VERSION }}
6970
-ps Infragistics
7071
-nsb http://spdx.org/spdxdocs/IgniteUI.Blazor.GridLite
72+
-mi SPDX:3.0
7173
-V Information
7274
7375
- name: Verify SBOM
7476
run: |
7577
set -euo pipefail
76-
test -s artifacts/_manifest/spdx_2.2/manifest.spdx.json
77-
test -s artifacts/_manifest/spdx_2.2/manifest.spdx.json.sha256
78+
test -s artifacts/_manifest/spdx_3.0/manifest.spdx.json
79+
test -s artifacts/_manifest/spdx_3.0/manifest.spdx.json.sha256
7880
echo "SBOM generated successfully."
7981
8082
- name: Upload NuGet package
@@ -88,8 +90,8 @@ jobs:
8890
- name: Upload SBOM files
8991
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
9092
with:
91-
name: sbom-spdx_2.2
92-
path: artifacts/_manifest/spdx_2.2
93+
name: sbom-spdx_3.0
94+
path: artifacts/_manifest/spdx_3.0
9395
retention-days: 1
9496
if-no-files-found: error
9597

@@ -104,15 +106,15 @@ jobs:
104106
- name: Download SBOM artifact
105107
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
106108
with:
107-
name: sbom-spdx_2.2
108-
path: spdx_2.2
109+
name: sbom-spdx_3.0
110+
path: spdx_3.0
109111

110112
- name: Attach SBOM to release
111113
env:
112114
GH_TOKEN: ${{ github.token }}
113115
TAG: ${{ github.ref_name }}
114116
run: |
115117
set -euo pipefail
116-
asset="IgniteUI.Blazor.GridLite.${TAG}.spdx_2.2.zip"
117-
(cd spdx_2.2 && zip -r "../${asset}" .)
118+
asset="IgniteUI.Blazor.GridLite.${TAG}.spdx_3.0.zip"
119+
(cd spdx_3.0 && zip -r "../${asset}" .)
118120
gh release upload "$TAG" "$asset" --clobber -R "${{ github.repository }}"

0 commit comments

Comments
 (0)