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:
@@ -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/
|
||||||
|
|||||||
Reference in New Issue
Block a user