You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Include untracked (newly created) files in diff-scope scan set via
git ls-files --others --exclude-standard
- Fix staged scope to scan the index version of each file using
git show :<path> into a temp file, ensuring scan matches what
will actually be committed
- Add json_escape() helper to escape backslashes and double quotes
in file paths and redacted values before JSON string concatenation
- Replace echo with printf for grep pipes to handle lines starting
with -n/-e safely
- Replace em dashes with colons and commas throughout
Copy file name to clipboardExpand all lines: hooks/secrets-scanner/README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,12 @@ Scans files modified during a GitHub Copilot coding agent session for accidental
12
12
13
13
AI coding agents generate and modify code rapidly, which increases the risk of hardcoded secrets slipping into the codebase. This hook acts as a safety net by scanning all modified files at session end for 20+ categories of secret patterns, including:
0 commit comments