From 0e3fbeb35fdfb414d0148946bea8a520d4bf4b54 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 14:25:51 +0000 Subject: [PATCH 1/2] docs(closure): post-pin-bump header names both pin writers and the review item The header still said the Action pins applier skips first-party owners. Since metadatastician/standards#1729 and #1732 it moves first-party reusable-workflow pins (e.g. hyperpolymath/hypatia) and apply-workflow-pins moves standards pins; both run this hook token-less before opening their PR, and a refusal becomes a needs-source-review item with no file from the hook. Comment only. Test: scripts/tests/post-pin-bump-test.sh 26/26. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01J4QvDfoKbykemjrR6GXDV5 --- scripts/post-pin-bump.sh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/scripts/post-pin-bump.sh b/scripts/post-pin-bump.sh index dccc4bbf..d96c6cfd 100755 --- a/scripts/post-pin-bump.sh +++ b/scripts/post-pin-bump.sh @@ -4,12 +4,17 @@ # # Post-pin-bump hook: the repo's half of the "single pin writer" contract. # -# The Action pins applier (metadatastician/standards) moves third-party -# `uses:` SHAs and actions.lock. It cannot write scripts/lib/*, and it skips -# first-party owners, so a bump of a pinned reusable-workflow commit leaves the -# source closure files (the manifest and the receipts) describing the old -# commit and main goes red. This hook re-attests the PIN-ONLY case and refuses -# everything else: +# Two writers in metadatastician/standards move this repository's pins: the Action +# pins applier (third-party `uses:` SHAs, actions.lock, and first-party reusable- +# workflow pins such as hyperpolymath/hypatia, standards#1729) and +# apply-workflow-pins (metadatastician/standards pins, standards#1732). Neither +# may write scripts/lib/*, so a moved reusable-workflow pin would leave the +# source closure files (the manifest and the receipts) describing the old commit +# and main red. Both run this hook in a token-less job before they open their +# PR. It re-attests the PIN-ONLY case and refuses everything else; on a refusal +# the writer opens the move WITHOUT any file from this hook, labelled +# needs-source-review, for a person to attest (3-practice/ACTION-PINS-APPLIER.adoc +# in standards): # # * a pin-only bump means the caller's reusable workflow now points at a new # commit of the SAME repository and path, and the workflow file there is From 9bb914fcee902ce49c96cb3a49130042a050f923 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 14:28:22 +0000 Subject: [PATCH 2/2] fix(closure): re-attest hypatia credential-read-check at d158aed8 (main red since #708) #708 (a Dependabot actions-group PR opened before the single-pin-writer ruling removed the github-actions ecosystem) moved hyperpolymath/hypatia/.github/workflows/credential-read-check.yml from f2c06048 to d158aed8 without the source closure files, and 'Pinned source closure' went red on main with SOURCE-ACTIVE-MISSING, as after #686 and #699. Regenerated by this repository's own scripts/post-pin-bump.sh in fetch mode, the same tool the pin writers now run: the workflow file is byte-identical at d158aed8 (pin-only), so only `commit` and the receipt rows move. Not edited by hand. Local run of the 'Pinned source closure' steps: pinned-reusable-sources-test 58/58, post-pin-bump-test 26/26, audit-pinned-reusable-sources --fetch-sources findings=0 not-run=0 verified-roots=14, scanner-caller-contract-test passed. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01J4QvDfoKbykemjrR6GXDV5 --- scripts/lib/lock-closure-receipts.tsv | 4 ++-- scripts/lib/pinned-reusable-sources.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/lib/lock-closure-receipts.tsv b/scripts/lib/lock-closure-receipts.tsv index 1714c623..36e6ce96 100644 --- a/scripts/lib/lock-closure-receipts.tsv +++ b/scripts/lib/lock-closure-receipts.tsv @@ -84,5 +84,5 @@ hyperpolymath/proven-cicd-and-workflows 50a443f01b1b85e4957b893a6f1a0ed2e8a52459 hyperpolymath/proven-cicd-and-workflows 50a443f01b1b85e4957b893a6f1a0ed2e8a52459 swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 hyperpolymath/proven-cicd-and-workflows 50a443f01b1b85e4957b893a6f1a0ed2e8a52459 taiki-e/install-action@ab49d3c64680143e184118bed66a46419fc15519 -# Reviewed source: hyperpolymath/hypatia/.github/workflows/credential-read-check.yml@f2c0604880f615bec5edda7aaefc8feac3d04cc5 -hyperpolymath/hypatia f2c0604880f615bec5edda7aaefc8feac3d04cc5 step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a +# Reviewed source: hyperpolymath/hypatia/.github/workflows/credential-read-check.yml@d158aed87f76b93e4f291e995bef9f26559c7fb2 +hyperpolymath/hypatia d158aed87f76b93e4f291e995bef9f26559c7fb2 step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a diff --git a/scripts/lib/pinned-reusable-sources.json b/scripts/lib/pinned-reusable-sources.json index 26762c5a..8a5f8064 100644 --- a/scripts/lib/pinned-reusable-sources.json +++ b/scripts/lib/pinned-reusable-sources.json @@ -731,7 +731,7 @@ }, { "repository": "hyperpolymath/hypatia", - "commit": "f2c0604880f615bec5edda7aaefc8feac3d04cc5", + "commit": "d158aed87f76b93e4f291e995bef9f26559c7fb2", "path": ".github/workflows/credential-read-check.yml", "blob": "15c597ea720a5affb861dab058084f7245ee4cbd", "content_sha256": "645e8ac8ff118c33f2dc941ec46f1abac895f7836339736841c269e4b9dc084d",