Skip to content

Commit 88ef24b

Browse files
aclark4lifeCopilot
andcommitted
Move SBOM validate after upload; pin check-jsonschema in requirements file
- Upload artifact before validate so inspectable copy exists if validation fails - Add .ci/requirements-sbom.txt with pinned check-jsonschema==0.37.1 - Use requirements file in workflow (Renovate-updatable) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d6209fa commit 88ef24b

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.ci/requirements-sbom.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
check-jsonschema==0.37.1

.github/workflows/wheels.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -298,17 +298,17 @@ jobs:
298298
- name: Generate CycloneDX SBOM
299299
run: python3 .github/generate-sbom.py
300300

301-
- name: Validate SBOM
302-
run: |
303-
pip install check-jsonschema
304-
check-jsonschema --schemafile "https://raw.githubusercontent.com/CycloneDX/specification/1.7/schema/bom-1.7.schema.json" *.cdx.json
305-
306301
- name: Upload SBOM as workflow artifact
307302
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
308303
with:
309304
name: sbom
310305
path: "*.cdx.json"
311306

307+
- name: Validate SBOM
308+
run: |
309+
pip install -r .ci/requirements-sbom.txt
310+
check-jsonschema --schemafile "https://raw.githubusercontent.com/CycloneDX/specification/1.7/schema/bom-1.7.schema.json" *.cdx.json
311+
312312
sbom-publish:
313313
if: |
314314
github.event.repository.fork == false

0 commit comments

Comments
 (0)