Skip to content

ci(release): CycloneDX SBOM + sha256 sidecar as release assets, build-provenance attestations (prepared) - #53

Merged
ronaldtse merged 1 commit into
mainfrom
sbom/cyclonedx-release-assets
Nov 24, 2026
Merged

ronaldtse merged 1 commit into
mainfrom
sbom/cyclonedx-release-assets

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Summary

  • Org supply-chain layer (SOTA-2027 trust surface), prepared only: py releases are owner-gated, so this PR adds the workflow steps — it does not dispatch anything. The next owner-dispatched release picks them up.
  • After a successful PyPI publish: CycloneDX 1.6 JSON SBOM via cyclonedx-py environment --sv 1.6 --of json --pyproject pyproject.toml over the installed environment (the release job already pip install -e .[dev]s it), named interscript-<version>.cdx.json, attached with a .sha256 sidecar (house sidecar pattern) to the GitHub release for the published version (pypa/gh-action-pypi-publish creates no GH release today — none exist for v0.x tags).
  • sdist + wheel + SBOM attested via actions/attest-build-provenance@v4 (gh attestation-compatible, continue-on-error).
  • Versions NOT bumped; post-publish steps never gate publishing.

Local verification

Fresh clone + venv: pip install -e . then cyclonedx-py environment --sv 1.6 --of json --pyproject pyproject.toml <python> -> CycloneDX 1.6 JSON, root interscript 0.2.1, 37 components.

Test plan

  • YAML parses (verified locally)
  • Next owner-gated release: SBOM + sidecar attached; attestations visible via gh attestation list

…nce attestations

Org supply-chain layer (prepared for the next owner-gated release; no
dispatch): after a successful PyPI publish the release job emits a
CycloneDX 1.6 JSON SBOM via cyclonedx-py over the installed environment
(rooted at pyproject.toml), names it interscript-<version>.cdx.json,
attaches it with a .sha256 sidecar to the GitHub release for the
published version, and attests sdist+wheel+SBOM via
actions/attest-build-provenance (continue-on-error). Post-publish steps
never gate publishing. Versions not bumped.
@ronaldtse
ronaldtse merged commit 9edb934 into main Nov 24, 2026
8 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