Repository navigation
Release: deterministic SBOM serialNumber (fixes the v0.3.0a1 attest failure) - #34
Merged
Merged
Conversation
cyclonedx-py --output-reproducible omits serialNumber, and actions/attest
refuses CycloneDX without it ("Unsupported SBOM format"), so the v0.3.0a1
run failed at Attest SBOM for the wheel before anything was published.
release.py sbom-serial sets urn:uuid:<uuid5(version, wheel sha256)>, so a
rebuild of the same wheel gets the same serial. The stamped SBOM of the
failed run validates against CycloneDX 1.6.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Stian Skogbrott <36493828+darklordVirtual@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
actions/attestaccepts a CycloneDX SBOM only when it has aserialNumber, andcyclonedx-py --output-reproducibleleaves that field out. That is why run 42522117444 failed at Attest SBOM for the wheel. Nothing was published, because the draft-release step was skipped.scripts/release.py sbom-serialnow sets a deterministic serial: a UUIDv5 of the version and the wheel's SHA-256. The same wheel always gets the same serial, so the build stays reproducible.Test plan
tests/test_release.py: 22 OK, including the newSbomSerialTestcyclonedx-python-libstrict validator)After merge: delete
v0.3.0a1and tag the merge commit, per docs/RELEASING.md.🤖 Generated with Claude Code