Skip to content

Normalize release provenance subject filenames - #9507

Open
ievav100 wants to merge 1 commit into
google:masterfrom
ievav100:codex/normalize-release-digests
Open

ievav100 wants to merge 1 commit into
google:masterfrom
ievav100:codex/normalize-release-digests

Conversation

@ievav100

@ievav100 ievav100 commented Nov 25, 2026 •

Copy link
Copy Markdown

Summary

The published FlatBuffers provenance for v25.12.19-2026-02-06-03fffb2 names the Windows subject *Windows.flatc.binary.zip. The SHA-256 digest matches the published archive. The leading * is the binary-mode marker from Windows sha256sum output, which the generator includes in the subject name. Published release SLSA generator checksum format

Normalize each checksum line in the merge step while preserving its SHA-256 value. Require one valid checksum for each expected archive so missing or mismatched digests stop the job before it emits a provenance input.

Validation

  • A hosted fork run fed the exact PR checksum script into the same SLSA generator at v2.1.0. The Windows runner produced a binary-mode checksum for the synthetic Windows ZIP. SLSA Verifier 2.7.1 independently verified all five synthetic archives against the pinned builder and fork source branch, and the verified statement contained all five exact filenames and matching SHA-256 digests. The Windows subject was Windows.flatc.binary.zip. The release-upload job was disabled. Hosted run Fixture workflow

  • Ran the exact merge step with the five published SHA-256 values, including Windows binary mode and CRLF. The resulting subjects used all five exact archive names.

  • The same step rejected missing, whitespace-only, invalid base64, unexpected filename, multiple-subject, and invalid SHA-256 fixtures before writing a provenance output.

  • SLSA Verifier 2.7.1 verified all five existing archives by digest, source repository, and release tag. Native Windows sha256sum produced the marked filename for the published ZIP. The patched step normalized that native output to the published filename and preserved the verified digest. Published release

  • git diff --check passed. Actionlint reported the same two disabled-job warnings on the base and patched workflows.

  • Of the 30 most recent releases checked, 16 had both the Windows ZIP and in-toto provenance. All 16 provenance records used the leading * and recorded the correct SHA-256 for the downloaded ZIP. SLSA Verifier 2.7.1 verified 14 against the repository and release tag. It rejected the legacy build type in v22.9.24 and v2.0.8. Release history Oldest verified example

The upstream zizmor reporting check failed on 53 existing unpinned action references. All 89 findings in its report point to unchanged source regions. A separate offline run of zizmor 1.25.2 with the uploaded policy produced the same 108 findings on the exact PR base and head. Upstream reporting check Scan artifacts

Prepared and tested with OpenAI Codex.

Preserve binary hashes while stripping checksum-format markers from signed subject names. Require the expected SHA-256 subject for every release archive.
@github-actions github-actions Bot added the CI Continuous Integration label Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant