fix: add hooks log directory to .gitignore to prevent sensitive data leakage

hooks.py logs full hook event data (including tool_input, which may contain
file contents or command arguments) to .claude/hooks/logs/hooks-log.jsonl.
This log file was not excluded from git, creating a risk of accidentally
committing sensitive data such as file contents passed to Write/Edit tools
or command arguments passed to Bash.

Added .claude/hooks/logs/ to .gitignore to prevent accidental commits.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
claude[bot]
2026-04-22 18:29:41 +00:00
parent 61a847cc4d
commit 6864fbd2a6
+3
View File
@@ -4,3 +4,6 @@ plan/
# Browser-automation verification artifacts (Playwright MCP / agent screenshots) # Browser-automation verification artifacts (Playwright MCP / agent screenshots)
.playwright-mcp/ .playwright-mcp/
*-check.png *-check.png
# Hook event logs may contain sensitive tool input data (file contents, command args)
.claude/hooks/logs/