Skip to content

ci: wire release provenance workflow and component SBOM manifests - #2589

Merged
ronaldtse merged 2 commits into
mainfrom
kwkwan/phase1-stage2-provenance
Nov 24, 2026
Merged

ronaldtse merged 2 commits into
mainfrom
kwkwan/phase1-stage2-provenance

Conversation

@kwkwan

@kwkwan kwkwan commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Implements Phase 1, Stage 2 of the release-provenance program (riboseinc/provenance#3, parent issue riboseinc/provenance#1).

Summary

  • Audits .github/workflows/release.yml and .github/workflows/prebuilt.yml so release provenance covers both the source tarball and all prebuilt static-library tarballs (needs: [release, prebuilt]).
  • Adds stage-provenance-artifacts in .github/workflows/release.yml to download every rnp-*.tar.gz asset attached to the release and stage them as a single workflow artifact for provenance generation and SLSA attestation.
  • Wires riboseinc/provenance-release/.github/workflows/release.yml@ee9153324c45246fa4319cdbebc3ceb9865aa527 (full 40-character commit SHA) with contents: write, id-token: write, and attestations: write, passing support-until (overridable via workflow_dispatch input, defaulting to 2 years from release date) and author/supplier (Ribose Inc.).
  • Pins all action references in .github/workflows/release.yml to full 40-character commit SHAs.
  • Adds ci/write_sbom_manifests.sh and wires it into ci/build_tarball.sh, ci/build_prebuilt.sh, and ci/build_prebuilt.ps1 to emit deterministic per-component share/rnp/components/<name>/vcpkg.json manifests inside release tarballs so syft's default vcpkg-manifest-cataloger accurately captures component identities, versions, and SPDX license expressions across both SPDX 3.0 and CycloneDX 1.7:
    • Source tarball: rnp, sexpp, nlohmann-json (which replaced json-c on main), sha1collisiondetection.
    • Prebuilt tarballs: the source components plus zlib, bzip2, and the selected crypto backend (botan or openssl).
  • Adds ci/write_sbom_manifests.sh to the pull_request.paths filter in .github/workflows/prebuilt.yml.

Verification

  • Validated shell syntax (bash -n) and workflow YAML parsing for .github/workflows/release.yml and .github/workflows/prebuilt.yml.
  • Ran riboseinc/provenance-release@ee9153324c45246fa4319cdbebc3ceb9865aa527 (syft 1.57.2) end-to-end against staged source, Botan prebuilt, and OpenSSL prebuilt tarballs:
    • All 6 generated SBOMs (3 x *.spdx.json SPDX 3.0 and 3 x *.cdx.json CycloneDX 1.7) pass 17/17 CISA 2026 Minimum Elements.
    • NOTICE accurately enumerates all 8 components with their versions and SPDX license expressions.
    • lifecycle.json and release-notes support-period footer stamping verified.
  • No production tags were created or pushed; live Sigstore gh attestation verify and GitHub Release upload verification await owner approval for a pre-release or release tag.

@ronaldtse

Copy link
Copy Markdown
Contributor

Thank you for this work, @kwkwan. The implementation follows the current release-integrity practice, and the verification in the description is thorough. The pinned provenance workflow produces keyless SLSA Build Level 3 attestations through Sigstore with GitHub-native attestations, the SBOMs cover both SPDX 3.0 and CycloneDX 1.7, and they pass the CISA 2026 Minimum Elements.

Three gaps remain before the program reaches a full 2027 posture, and none of them block this pull request.

  1. The vulnerability feeds at cve.ribose.com currently publish OSV and GHSA records, while CSAF and VEX documents are not yet published. By 2027 practice under the CRA, a machine-readable vulnerability status per release (CSAF VEX, stating affected, not affected or fixed for each advisory) is the expected companion to the SBOM. This is an organization-level buildout of the CNA infrastructure rather than a change to this repository, and the SUPPORT.md file in docs: add SUPPORT.md for CRA Article 14 release support policy #2592 declares the intent.
  2. The repository has no SECURITY.md file, and the GitHub private vulnerability reporting capability, although enabled, is not surfaced anywhere. I have opened docs: add SECURITY.md with vulnerability reporting channels and feeds #2593, which adds the file and links the channels that this program uses.
  3. The Build Level 3 claim rests on the reusable workflow. A short section in the release documentation that names the isolation and hermeticity evidence behind the level would make the claim auditable.

I have one review finding in ci/write_sbom_manifests.sh. The version of sha1collisiondetection is hardcoded to 1.0.3, while every other component version is resolved from a file. If the submodule is bumped without editing the script, the manifest would silently declare a wrong version. Please resolve it from the submodule in the same manner as the sexpp version, or add it to ci/prebuilt-versions.env as a single source of truth.

@kwkwan

kwkwan commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Suggested merge order remains #2589 → #2592 → #2593.

@ronaldtse ronaldtse left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for addressing the review findings so completely, @kwkwan. The sha1collisiondetection version now resolves from ci/prebuilt-versions.env in both script flavors, and the new release-workflow documentation makes the Build Level 3 claim auditable. The merge order you suggest works.

@ronaldtse
ronaldtse merged commit 3f2dcc9 into main Nov 24, 2026
2 of 139 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.

2 participants