ADR-3316: Release assets carry their build provenance¶
- Status: Accepted
- Date: 2026-10-14
- Deciders: Lusoris (operator order vmafx-red-main-20261013-scorecard-plan, paraphrased)
- Tags: ci, scorecard, security, release, supply-chain
Context¶
OpenSSF Scorecard evaluation on master reported an aggregate repository score of 8.452381, which is below the project's 8.5 quality gate threshold enforced by scripts/ci/scorecard_gate.py.
Under Scorecard v5.6.0 rules (checks/evaluation/signed_releases.go), the Signed-Releases check inspects the last 5 releases. Each release scores:
- 8 if it carries cryptographic signature assets (e.g.
.sig,.asc,.sigstore,.sigstore.json). - 10 if it carries an in-toto build-provenance attestation asset whose filename ends in
.intoto.jsonl. The final check score is the floor of the releases' average.
At present, all five releases carry keyless Sigstore signatures (*.sigstore.json), but none carry an .intoto.jsonl asset, capping the check score at 8.
The native GitHub action actions/attest-build-provenance v4.2.2 (wrapping actions/attest v4.2.1) produces an output bundle-path containing JSON.stringify(bundle) + EOL. This file is valid single-line JSONL. Normalizing the bundle with jq --compact-output . "$BUNDLE" > *.intoto.jsonl ensures a single JSON line format. Consumers can verify release assets against the bundle offline via gh attestation verify <asset> --bundle <bundle>.intoto.jsonl --repo VMAFx/vmafx.
Decision¶
Every workflow that creates a GitHub release or uploads release assets must normalize and publish its build-provenance bundle as an *.intoto.jsonl release asset alongside existing .sigstore.json signature files:
- macOS tester bundle (
.github/workflows/macos-tester-bundle.yml): Assignsid: provenanceto theactions/attest-build-provenancestep. A subsequent step normalizes the bundle tobundle/vmafx-tester-macos-provenance.intoto.jsonlusingjq -c ., asserts exactly one line, and verifies allbundle/*.tar.xzarchives viagh attestation verify. The existingbundle/*glob in the release creation step attaches the file. - Windows tester bundle (
.github/workflows/windows-tester-bundle.yml): Assignsid: provenanceto theactions/attest-build-provenancestep. A subsequent step normalizes the bundle toassets/vmafx-tester-windows-provenance.intoto.jsonlusingjq -c ., asserts exactly one line, and verifies allassets/*.ziparchives viagh attestation verify. The existingassets/*glob in the release creation step attaches the file. - Supply-chain release workflow (
.github/workflows/supply-chain.yml): In bothprovenance(native binaries) andmcp-provenance(PyPI package) jobs, normalizes the staged bundle toprovenance/vmafx-build-provenance.intoto.jsonlandprovenance/vmaf-mcp-provenance.intoto.jsonl, asserts single-line format, and passes both files through artifact upload/download toattach-to-release. The release job requires both files and lists them insoftprops/action-gh-releasefiles:. - Static CI checker (
scripts/ci/check_release_provenance_assets.py): Inspects.github/workflows/usingyaml.safe_load. Any workflow invokingsoftprops/action-gh-releaseor runninggh release create/gh release upload(ignoring comments) is classified as a releaser. The checker requires that each releaser writes an.intoto.jsonlpath in arun:step and includes it in its uploaded files/globs. - Testing and regression suite (
scripts/ci/tests/test_check_release_provenance_assets.py): Validates positive repository state, missing provenance negatives, unmatched glob negatives, stale exemption negatives, unparsable YAML exit code 2, and non-releaser boundaries (# gh release create,gh release view). - Hook and pipeline wiring: Integrated into
.pre-commit-config.yaml(check-release-provenance-assets,test-check-release-provenance-assets),Makefile(lint-actions), and tracked under thetoolingtest suite executed by the "Tooling Tests" CI job.
Out of scope workflows¶
docker-publish-*: Out of scope because these workflows only read release tags to build and attest container images published to GitHub Packages (GHCR); they do not create GitHub releases or upload release assets.release-please.yml: Out of scope because it usesgoogleapis/release-please-actionto draft release PRs and tags releases without releasing binary build assets.published-rc-licence-companions.yml: Out of scope because it attaches retrospective licence texts and third-party notices to historic candidate releases (v1.0.0-rc.1 and rc.2); it builds and releases no binaries, and is formally exempted inEXEMPT_WORKFLOWS.
Alternatives considered¶
| Option | Pros | Cons | Why not chosen |
|---|---|---|---|
| Do nothing / wait for SAST | Zero code changes | Scorecard Signed-Releases stays at 8; total score 8.452381 remains below 8.5 gate | Fails required security gate on master |
| Upload attestation store bundles by hand once | No workflow edits | Manual, unrepeatable, brittle across future releases, fails automation invariant | Unautomated manual state mutations are forbidden |
Generate a separate SLSA generator workflow (slsa-framework/slsa-github-generator) | Upstream SLSA branding | Reintroduces unpinned action dependencies previously eliminated by ADR-1356 | Fails strict SHA-pinning and hermeticity invariants |
Emit normalized *.intoto.jsonl from native actions/attest-build-provenance outputs and gate in CI (chosen) | Meets Scorecard 10/10 for Signed-Releases; zero new third-party actions; offline consumer verification | Uploads one additional provenance asset per release bundle | Fully satisfies supply chain, Scorecard, and gate invariants cleanly |
Consequences¶
- Positive: Future releases achieve score 10 for Signed-Releases; repository overall Scorecard score advances past the 8.5 quality gate; consumers can verify release assets offline via
gh attestation verify --bundle <file>.intoto.jsonl. - Negative: Workflows write and upload one additional
.intoto.jsonlasset per release bundle. - Neutral / follow-ups: Existing 5 releases remain at score 8 unless backfilled by separate operator action (
vmafx-signed-releases-provenance); documentation indocs/development/release.mdanddocs/usage/tester-image.mdupdated with consumer verification recipes.