Skip to content

Commit 6228e48

Browse files
ci: fix SBOM generation — remove --schema-version flag dropped in cyclonedx-bom v7
cyclonedx-bom v7.2.2 removed the --schema-version CLI argument, causing every publish run since v1.0.14 to fail at the SBOM step. Pin to cyclonedx-bom>=7,<8 and drop the removed flag. Closes the gap that blocked PyPI releases for v1.0.14, v1.0.15, v1.1.0.
1 parent dd6c057 commit 6228e48

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,14 @@ jobs:
187187
run: pip install build && python -m build
188188
- name: Generate SBOM (CycloneDX)
189189
run: |
190-
pip install cyclonedx-bom
190+
pip install 'cyclonedx-bom>=7,<8'
191191
# Generate SBOM from the built wheel — covers the package + all
192192
# declared dependencies (which is zero for aiir, but proves it).
193+
# NOTE: --schema-version was removed in cyclonedx-bom v7; the tool
194+
# now emits the latest CycloneDX schema version automatically.
193195
cyclonedx-py environment \
194196
--output-format json \
195-
--output-file dist/aiir-sbom.cdx.json \
196-
--schema-version 1.5
197+
--output-file dist/aiir-sbom.cdx.json
197198
echo "✅ SBOM generated: $(wc -c < dist/aiir-sbom.cdx.json) bytes"
198199
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
199200
with:

0 commit comments

Comments
 (0)