Pre-commit hook: penthera hook
Pro. For “how do I put it in CI?”
Block it before it’s committed
Once a secret is pushed, rotating it is the only fix. The pre-commit hook runs the checks that matter on what you are about to commit, and nothing else:- secrets and AI provider keys in staged files;
penthera agentsrules on staged.mcp.json,CLAUDE.md,AGENTS.md,.cursor/,.claude/andskills/;- when
package-lock.jsonis staged, the capability diff against HEAD’s lockfile and the license policy, for the packages this commit adds.
penthera.policy.json:
ignore, or set "largeFiles": "warn" in the hook section to only warn.
If husky or lefthook manage your hooks (core.hooksPath is set),
penthera hook install says so instead of overwriting them. Add one line to
that tool instead: