Files
VoiceStudio/scripts
DeryFerd 5a6ec4b5a4 ci(actions): verify pinned action SHAs against the versions they name
test_each_pin_names_the_version_it_holds matches the version comment with a
regex and never resolves it, so a pin swapped for a well-formed SHA of a
different commit passes every check in the file. The label is documentation,
not a check.

Add scripts/verify_action_pins.py, which resolves each distinct action/label
pair (30 of them, 258 references) through the GitHub API and compares the tag's
commit with the pinned SHA. Subpath references resolve against their repository
(actions/cache/restore -> actions/cache), annotated tags are dereferenced, and
a channel label such as dtolnay/rust-toolchain's `stable` is reported rather
than compared, because the pin deliberately freezes a moving branch.

PR CI stays hermetic: the pytest entry point skips unless
VOICESTUDIO_VERIFY_ACTION_PINS=1, and .github/workflows/action-pin-verify.yml
runs the script weekly with a token plus workflow_dispatch, so the check is
executed rather than merely available.

Verified with a token: 250 references verified, 0 mismatched, 0 unresolved.
Swapping one checkout SHA in ci.yml reports `v7.0.1 is 3d3c42e5...ba90b1` and
exits 1.
2026-11-20 15:00:14 +07:00
..
2026-11-09 14:17:56 +05:30