Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: Add gitleaks allowlist for API key documentation comments

LearningCircuit73bc34426250
diff --git a/.github/workflows/file-whitelist-check.yml b/.github/workflows/file-whitelist-check.yml
index 5593190583..e7c21a27fc 100644
--- a/.github/workflows/file-whitelist-check.yml
+++ b/.github/workflows/file-whitelist-check.yml
@@ -34,6 +34,7 @@ jobs:
"\.flake8$"
"\.ipynb$"
"\.template$"
+ "\.toml$"
"^\.gitignore$"
"^\.gitkeep$"
".*\.gitkeep$"
@@ -42,6 +43,7 @@ jobs:
"^\.isort\.cfg$"
"^\.coveragerc$"
"^\.secrets\.baseline$"
+ "^\.gitleaks\.toml$"
"^pytest\.ini$"
"^LICENSE$"
"^README$"
diff --git a/.gitleaks.toml b/.gitleaks.toml
new file mode 100644
index 0000000000..6b849897f9
--- /dev/null
+++ b/.gitleaks.toml
@@ -0,0 +1,14 @@
+# Gitleaks configuration for local-deep-research
+
+[allowlist]
+description = "Allowlist for known false positives"
+
+# Allow comments that explain API key usage but don't contain actual keys
+[[allowlist.regexes]]
+regex = '''# API_KEY: OpenRouter API key'''
+description = "Documentation comment in ai-reviewer.sh explaining API key parameter"
+
+# Allow the specific commit that contains the documentation
+[[allowlist.commits]]
+id = "b31ff6fec15c9fe6f523d1f93f23e321b8803799"
+description = "Refactor commit with API key documentation in comments"
diff --git a/.pre-commit-hooks/file-whitelist-check.sh b/.pre-commit-hooks/file-whitelist-check.sh
index be49997613..f09b02d1e8 100755
--- a/.pre-commit-hooks/file-whitelist-check.sh
+++ b/.pre-commit-hooks/file-whitelist-check.sh
@@ -17,6 +17,7 @@ ALLOWED_PATTERNS=(
"\.flake8$"
"\.ipynb$"
"\.template$"
+ "\.toml$"
"^\.gitignore$"
"^\.gitkeep$"
".*\.gitkeep$"
@@ -25,6 +26,7 @@ ALLOWED_PATTERNS=(
"^\.isort\.cfg$"
"^\.coveragerc$"
"^\.secrets\.baseline$"
+ "^\.gitleaks\.toml$"
"^pytest\.ini$"
"^LICENSE$"
"^README$"