PYTHON-5433 - Fix Silkbomb issues #2622
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PYTHON-5433
Summary
Switched SBOM generation from cdxgen to cyclonedx-py v7.2.1 to ensure compatibility with our internal Silkbomb validation tool. The issue is that cdxgen generates SBOMs with a
lifecyclesmetadata field (part of CycloneDX 1.5 spec) that the Python library used by Silkbomb doesn't support yet (see CycloneDX/cyclonedx-python-lib#578), causing validation failures. cyclonedx-py generates spec-compliant 1.5 SBOMs without this field, ensuring compatibility with both the official CycloneDX CLI validator and Silkbomb's internal validation. Also added CycloneDX CLI validation step to the workflow. Tested successfully with both CycloneDX CLI validation and Silkbomb's update/validate commands.See sample PR for update changes: thanhnguyen-mdb#11
Changes in this PR
Testing Plan
Generate new sbom in fork & ran Silkbomb update/validate locally:
Update:
Validate:
Checklist
Checklist for Author
Checklist for Reviewer {@primary_reviewer}
Focus Areas for Reviewer (optional)