Repository navigation
docs(README): name .husky among the pinned config paths - #1077
Merged
Merged
Conversation
The config-pinning bullet listed four of the five paths in SENSITIVE. Adds .husky and a test holding the script, the README, and the threat model to the same list.
max-sixty
added a commit
that referenced
this pull request
Aug 30, 2026
It merged to main after the section was drafted, so the tag ships it while the notes omitted it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The README's Config pinning bullet lists four of the five root paths the action restores from the base branch, omitting
.husky. That understates the protection to the audience most likely to be evaluating it:.husky/holds git hooks, so a fork's copy is a code-execution path, and pinning it is exactly the kind of thing a reader of that paragraph is checking for.The implementation and the threat model have both been right the whole time —
SENSITIVE=(.mcp.json .claude.json .gitmodules .ripgreprc .husky)inshared/steps/restore-sensitive-config.sh, anddocs/security-model.mdnames all five. Only the README drifted, and it has been wrong since.huskywas added.This adds
.huskyto the README list and pins the three-way agreement with a test: it parses theSENSITIVEarray out of the script and asserts every entry is named in the README's config-pinning paragraph and indocs/security-model.md. The next path added to that array now fails the suite until both docs name it.Verification
The test fails on the pre-fix README and passes after:
The README match is scoped to the config-pinning paragraph rather than the whole file, so a mention elsewhere can't satisfy the claim.
uv run pytest— 733 passed.pre-commitclean on both changed files..huskyhas been inSENSITIVEsince it was introduced;git log -S'.husky'on the script and the two docs returns only the commits that added it to the script, never one that added it to the README.