Skip to content

Release: deterministic SBOM serialNumber (fixes the v0.3.0a1 attest failure) - #34

Merged
darklordVirtual merged 1 commit into
mainfrom
fix/release-sbom-serial
Nov 8, 2026
Merged

darklordVirtual merged 1 commit into
mainfrom
fix/release-sbom-serial

Conversation

@darklordVirtual

Copy link
Copy Markdown
Owner

actions/attest accepts a CycloneDX SBOM only when it has a serialNumber, and cyclonedx-py --output-reproducible leaves 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-serial now 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 new SbomSerialTest
  • The failed run's SBOM, once stamped, passes the attest check and validates against CycloneDX 1.6 (cyclonedx-python-lib strict validator)
  • The PR rehearsal of the release workflow

After merge: delete v0.3.0a1 and tag the merge commit, per docs/RELEASING.md.

🤖 Generated with Claude Code

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>
@darklordVirtual
darklordVirtual merged commit 8682042 into main Nov 8, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant