Skip to content

Drop SBOM release-asset upload under immutable releases - #447

Merged
btschwertfeger merged 1 commit into
masterfrom
drop-sbom-release-asset
Jul 7, 2026
Merged

Drop SBOM release-asset upload under immutable releases#447
btschwertfeger merged 1 commit into
masterfrom
drop-sbom-release-asset

Conversation

@btschwertfeger

@btschwertfeger btschwertfeger commented Jul 7, 2026

Copy link
Copy Markdown
Owner

UploadPyPI attached the SBOM with gh release upload, but immutable releases reject asset changes after publish and the job runs on release: created, which fires only once the release is already published. The step could never attach the SBOM. The SBOM still ships as a digest-bound attestation, and PEP 770 will embed it in the wheel once setuptools supports it.

Dropping the step also returns the job to contents: read, clearing Scorecard alert https://github.com/btschwertfeger/python-kraken-sdk/security/code-scanning/160.

Immutable releases reject asset changes after publish, and UploadPyPI runs on the release:created event that fires only once the release is already published, so the gh release upload step could never attach the SBOM. Remove the step, drop the job back to contents: read (clearing Scorecard #160), and drop the now-unused uploads.github.com egress endpoint. The SBOM still ships as a digest-bound attestation.
@btschwertfeger btschwertfeger added Release CI/CD Related to workflows and package publishing and removed Release labels Jul 7, 2026
@btschwertfeger btschwertfeger self-assigned this Jul 7, 2026
@btschwertfeger btschwertfeger added this to the Upcoming Release milestone Jul 7, 2026
@btschwertfeger
btschwertfeger merged commit d6ee3fc into master Jul 7, 2026
31 checks passed
@btschwertfeger
btschwertfeger deleted the drop-sbom-release-asset branch July 7, 2026 05:57
btschwertfeger added a commit that referenced this pull request Jul 30, 2026
PR #447 dropped the `gh release upload` step that attached
`sbom.cdx.json` to the GitHub Release, since immutable releases make a
release-time asset upload unworkable from a job triggered on `release:
created`. The comment above the SBOM generation step still described
that removed behavior.

The SBOM now reaches consumers only as the digest-bound attestation
written by `actions/attest-sbom`, so the comment says that instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CD Related to workflows and package publishing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant