Skip to content

Commit 3412cb6

Browse files
sarg3ntclaude
andcommitted
fix: allowlist historical commit in gitleaks config
Commit 2fdb5ba introduced functional_test.go with an example API key value in a doc comment (for illustrating how to run the test). It was not a real credential and has since been replaced with <YOUR_API_KEY> placeholder, but gitleaks scans the full commit history so the original commit still triggers the rule. Allowlist the commit SHA explicitly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2c74c2c commit 3412cb6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.gitleaks.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ regexes = [
7171
]
7272

7373
# Allowlist - commits to ignore
74-
commits = []
74+
# 2fdb5ba: functional_test.go had an example API key value in a doc comment
75+
# (test-only, not a real credential — replaced with <YOUR_API_KEY> placeholder in a later commit)
76+
commits = [
77+
"2fdb5ba0d2e8da23a6409527cdbf6696d90eb537",
78+
]
7579

7680
# Stopwords - tokens that if found will stop gitleaks
7781
stopwords = [

0 commit comments

Comments
 (0)