aboutsummaryrefslogtreecommitdiff
path: root/githooks
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-25 13:16:30 -0500
committerCraig Jennings <c@cjennings.net>2026-05-25 13:16:30 -0500
commite0f6b54f41384e8bfdc33810b370ca6eaca9298f (patch)
tree282f8c97194662c7d737ec495d38ee9f5a5a9fed /githooks
parentbdbfaa5aec491c89087506508829e9b7a64917bc (diff)
downloaddotemacs-e0f6b54f41384e8bfdc33810b370ca6eaca9298f.tar.gz
dotemacs-e0f6b54f41384e8bfdc33810b370ca6eaca9298f.zip
chore: sync bundled claude rules and git hooks
Routine sync of the .claude/rules and git hooks distributed with the language bundle. Adds the cross-project, emacs, interaction, todo-format, triggers, and working-files rules; refreshes the elisp and elisp-testing rules, the elisp validation hook, and the pre-commit hook.
Diffstat (limited to 'githooks')
-rwxr-xr-xgithooks/pre-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/githooks/pre-commit b/githooks/pre-commit
index 252921df..909cde22 100755
--- a/githooks/pre-commit
+++ b/githooks/pre-commit
@@ -9,7 +9,7 @@ cd "$REPO_ROOT"
# --- 1. Secret scan ---
# Patterns for common credentials. Scans only added lines in the staged diff.
-SECRET_PATTERNS='(AKIA[0-9A-Z]{16}|(^|[^a-zA-Z0-9])sk-[a-zA-Z0-9_-]{20,}|-----BEGIN (RSA|DSA|EC|OPENSSH|PGP)( PRIVATE)?( KEY| KEY BLOCK)?-----|(api[_-]?key|api[_-]?secret|auth[_-]?token|secret[_-]?key|bearer[_-]?token|access[_-]?token|password)[[:space:]]*[:=][[:space:]]*["'"'"'][^"'"'"']{16,}["'"'"'])'
+SECRET_PATTERNS='(AKIA[0-9A-Z]{16}|sk-[a-zA-Z0-9_-]{20,}|-----BEGIN (RSA|DSA|EC|OPENSSH|PGP)( PRIVATE)?( KEY| KEY BLOCK)?-----|(api[_-]?key|api[_-]?secret|auth[_-]?token|secret[_-]?key|bearer[_-]?token|access[_-]?token|password)[[:space:]]*[:=][[:space:]]*["'"'"'][^"'"'"']{16,}["'"'"'])'
secret_hits="$(git diff --cached -U0 --diff-filter=AM \
| grep '^+' | grep -v '^+++' \