Skip to content

Commit d89fda4

Browse files
author
Tooru
committed
Update cyclonedx-py CLI flags for v4.x
1 parent a8a7b86 commit d89fda4

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

scripts/sbom.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,23 @@ echo ""
5555
# This uses the lock files which pin all transitive dependencies
5656
echo "Generating combined SBOM (JSON format)..."
5757
"${VENV_DIR}/bin/cyclonedx-py" environment \
58-
--output-format JSON \
58+
--of JSON \
5959
--output-reproducible \
6060
--mc-type application \
61-
--spec-version 1.5 \
62-
--output-file "${SBOM_DIR}/sbom.json" \
61+
--sv 1.5 \
62+
-o "${SBOM_DIR}/sbom.json" \
6363
"${VENV_DIR}"
6464

6565
echo "Generated: ${SBOM_DIR}/sbom.json"
6666

6767
# Also generate XML format for compatibility
6868
echo "Generating combined SBOM (XML format)..."
6969
"${VENV_DIR}/bin/cyclonedx-py" environment \
70-
--output-format XML \
70+
--of XML \
7171
--output-reproducible \
7272
--mc-type application \
73-
--spec-version 1.5 \
74-
--output-file "${SBOM_DIR}/sbom.xml" \
73+
--sv 1.5 \
74+
-o "${SBOM_DIR}/sbom.xml" \
7575
"${VENV_DIR}"
7676

7777
echo "Generated: ${SBOM_DIR}/sbom.xml"

0 commit comments

Comments
 (0)