Verify the pinned zsh manifest in release builds (#39056)

## Why

Release jobs download the `codex-zsh` manifest before packaging or signing its
bundled binaries. Verify that download against a pinned digest so an unexpected
manifest cannot enter release artifacts.

## What changed

- Pin the SHA-256 digest for the `codex-zsh-v0.1.0` manifest.
- Add a portable verification script that uses `sha256sum` or macOS `shasum`.
- Run verification in both the package archive and macOS helper signing flows.

GitOrigin-RevId: a404bb897c8cc0bf3c0ff38e8a6e1cce059d7fab
This commit is contained in:
Charlie Marsh
2026-08-17 19:30:38 +00:00
committed by copyberry
parent 4a7b51c560
commit afb1b3c984
2 changed files with 17 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -euo pipefail
manifest="${1:?missing zsh manifest path}"
expected_sha256="${2:?missing expected zsh manifest SHA-256}"
if command -v sha256sum >/dev/null 2>&1; then
printf '%s %s\n' "$expected_sha256" "$manifest" | sha256sum --check -
else
printf '%s %s\n' "$expected_sha256" "$manifest" | shasum -a 256 --check -
fi