Skip to content

fix(sbom): preserve format and reproducibility - #3278

Merged
gaborbernat merged 4 commits into
pypa:mainfrom
gaborbernat:fix/sbom-review
Sep 22, 2026
Merged

gaborbernat merged 4 commits into
pypa:mainfrom
gaborbernat:fix/sbom-review

Conversation

@gaborbernat

Copy link
Copy Markdown
Contributor

The SBOM hook added in #3270 splits wheel RECORD rows on commas, which breaks valid CSV paths containing commas or quoted newlines. It also declares unresolved runtime dependencies as leaves, although CycloneDX uses an empty dependsOn list to mean that a component has no dependencies.

Parse RECORD as CSV and omit dependency entries where the transitive graph is unknown. Keep the root edges and incomplete composition, and allow those unknown relationships in the validator.

Use Hatchling's reproducible timestamp for the SBOM and recorded build input. Leave CI run identifiers in release attestations instead of embedding them in wheel content, and read the source revision from the checkout rather than a downstream builder's GITHUB_SHA.

@gaborbernat
gaborbernat merged commit 7b5611d into pypa:main Sep 22, 2026
64 checks passed
@gaborbernat gaborbernat added the security Fixes a vulnerability or hardens the supply chain, CI or release label Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug security Fixes a vulnerability or hardens the supply chain, CI or release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant