Skip to content

feat: add block-no-verify hook to prevent AI agents from bypassing git hooks#43

Open
tupe12334 wants to merge 1 commit intotrailofbits:mainfrom
tupe12334:add-block-no-verify
Open

feat: add block-no-verify hook to prevent AI agents from bypassing git hooks#43
tupe12334 wants to merge 1 commit intotrailofbits:mainfrom
tupe12334:add-block-no-verify

Conversation

@tupe12334
Copy link

Closes #42. Adds block-no-verify@1.1.2 as a PreToolUse hook in settings.json, prepended to the existing Bash hook array. Claude Code can bypass pre-commit hooks via hook-bypass flags on git commit/push, silently defeating linters and secret scanners. block-no-verify detects these flags and exits with code 2 to block the command. It slots alongside the existing rm -rf and force-push blocks with no structural changes. See https://github.com/tupe12334/block-no-verify for details. Disclosure: I am the author and maintainer of block-no-verify.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add block-no-verify to prevent AI agents from skipping git hooks

2 participants