Commit graph

7 commits

Author SHA1 Message Date
58d7c0420c fix: allowlist — add regexTarget=match for global allowlist; allow Python private fn on RHS 2026-04-02 23:40:26 -07:00
4dc1cbfec8 docs: add README with install and usage instructions 2026-03-07 13:04:49 -08:00
c404bfc762 test: add integration tests for pre-commit and commit-msg hooks
12 tests covering secret blocking (FORGEJO token, sk- key), PII blocking
(phone, personal email), allowlist pass-throughs (.example files, ollama
placeholder, safe source), and all commit-msg format cases.
2026-03-07 12:43:28 -08:00
7bfd154a3a fix(hooks): quote CONFIG_ARG, guard pre-push against empty repos
- Quote $CONFIG_ARG in pre-commit and pre-push to prevent word-splitting
  on paths with spaces or special characters
- Add `git rev-parse HEAD` guard in pre-push so gitleaks is skipped on
  repos with no commits yet (gitleaks git exits non-zero on empty history)
- Expand pre-push header comment to document the empty-repo skip and note
  the full-history scan tradeoff for large repos
2026-03-07 12:40:35 -08:00
17af84a525 feat: add pre-commit, commit-msg, and pre-push hook scripts 2026-03-07 12:37:30 -08:00
e704ddf42b feat: add install.sh for one-command hook activation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 12:36:18 -08:00
450a0ef994 feat: add shared gitleaks config with CF secret + PII rules 2026-03-07 12:33:46 -08:00