fix: use immutableCreate to fix missing SPDX/intoto release assets#1129
Merged
fix: use immutableCreate to fix missing SPDX/intoto release assets#1129
Conversation
…to assets Root cause: ncipollo/release-action with makeLatest created releases as immutable, then failed to upload artifacts in a separate API call with "Cannot upload assets to an immutable release". Fix: Replace makeLatest with immutableCreate to create immutable releases WITH artifacts atomically (matching riksdagsmonitor pattern). Changes: - Replace makeLatest: true with immutableCreate: true in ncipollo/release-action - Add sha256 checksum generation for release ZIP verification - Add artifact verification step before release creation - Include sha256 file in release artifacts - Enhance release body with artifact documentation and verification commands Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix missing spdx and intoto assets in release workflow
fix: use immutableCreate to fix missing SPDX/intoto release assets
Mar 20, 2026
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the GitHub Actions release workflow to ensure all expected supply-chain artifacts (zip, checksum, SPDX SBOM, and in-toto attestations) are actually uploaded to the GitHub Release, addressing prior silent asset upload failures when creating immutable releases.
Changes:
- Generate and publish a
sha256checksum file for the release zip. - Add a pre-release verification step that fails the workflow if any expected artifacts are missing.
- Switch
ncipollo/release-actionfrommakeLatest: truetoimmutableCreate: true, and enhance the release body with artifact verification commands.
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.



Release assets (SPDX SBOM, intoto attestations, zip) were silently not being uploaded. The CI logs showed:
ncipollo/release-actionwithmakeLatest: truecreates the release first (immutable), then tries to upload artifacts in a separate API call — which the immutable release rejects. The step still reports success.Fix
makeLatest: true→immutableCreate: true— creates the immutable release with artifacts atomically in one operation, matching the working riksdagsmonitor patternhomepage-vX.Y.Z.zip.sha256and includes it in release assets (parity with riksdagsmonitor)sha256sum -c,gh attestation verify)💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.