diff --git a/.gitleaks.toml b/.gitleaks.toml index fb8c426a..a07895bf 100644 --- a/.gitleaks.toml +++ b/.gitleaks.toml @@ -13,15 +13,24 @@ useDefault = true '''tests/e2e/''', '''tests/fixtures/''', '''examples/''', + # Historical test fixtures (files deleted from main but scanned via + # full git history with fetch-depth: 0). + '''src/lib/llm/__tests__/''', + # SKILL.md documents env var names only; values are empty placeholders. + '''do-web-doc-resolver/SKILL.md''', ] # Known safe patterns in test data and configuration examples regexes = [ '''example[_-]?api[_-]?key''', + '''test[_-]?api[_-]?key''', '''test[_-]?secret''', '''demo[_-]?token''', '''OPENROUTER_API_KEY''', '''KILO_API_KEY''', + # security-patterns.md shows BAD examples for documentation purposes + '''sk-abc123xyz''', + '''BEGIN RSA PRIVATE KEY''', ] # SHA-256 of known-safe files (update if test fixtures change)