Skip to content

Commit b16add0

Browse files
hyperpolymathclaude
andcommitted
chore(pre-commit): SHA-pin a2ml + k9 hooks (estate supply-chain hygiene)
`rev: main` was being passed to pre-commit for both a2ml-pre-commit and k9-pre-commit, meaning every clean `pre-commit install` could pull a different commit. Neither hook repo cuts tags, so SHA pinning is the right discipline. Pinned to current `main` HEAD (2026-05-22, the MPL-2.0 license-migration commit on both repos). This mirrors the SHA-pinning already done in .github/workflows/ (see e2e8a01, 0dd6990, a91b583, 35fb302). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent caa407f commit b16add0

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,18 @@ repos:
1919
args: ['--maxkb=1024']
2020

2121
# --- A2ML manifest validation ---
22+
# SHA-pinned (neither hook repo cuts tags). Bump by running
23+
# `gh api repos/hyperpolymath/a2ml-pre-commit/commits/main --jq .sha`
24+
# (and the k9 equivalent) and replacing the rev when a refresh is needed.
2225
- repo: https://github.com/hyperpolymath/a2ml-pre-commit
23-
rev: main
26+
rev: cee7b74f1b9c3da521e9d05999552fa4d03b8b28 # main @ 2026-05-22
2427
hooks:
2528
- id: validate-a2ml
2629
name: Validate A2ML manifests
2730

2831
# --- K9 contract validation ---
2932
- repo: https://github.com/hyperpolymath/k9-pre-commit
30-
rev: main
33+
rev: 18bcd863af84d9dea24e14fae5c1f6afa10f6866 # main @ 2026-05-22
3134
hooks:
3235
- id: validate-k9
3336
name: Validate K9 contracts

0 commit comments

Comments
 (0)