Skip to content

Commit 9449511

Browse files
[WIP] workflow: set SBOM out version to 1.3
Upload to DT failed with schema validation error and no details, maybe the version is to recent.
1 parent 925fdf5 commit 9449511

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/sbom.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,13 @@ jobs:
8080

8181
- name: Merge SBOMs
8282
# https://github.com/CycloneDX/cyclonedx-cli#merge-command
83+
# Using v1_3 because with the default (1.6) the upload failed at the DT web interface
8384
#
8485
# The generated SBOM is fixed with sed to remove potentially bad characters
8586
# Slashes are not allowed after the @ in the meta/component's bom-ref
8687
# attribute and purl node.
8788
run: |
88-
cyclonedx merge --input-files bom.composer.xml bom.npm.xml --output-file bom.xml
89+
cyclonedx merge --input-files bom.composer.xml bom.npm.xml --output-file bom.xml --output-version v1_3
8990
sed -i -r 's;(pkg:composer/__root__)@[^"<]+;\1@merged-sbom;' bom.xml
9091
9192
# Pass merged BOM to next Job

0 commit comments

Comments
 (0)