Skip to content

Commit b5be3e1

Browse files
committed
chore(gitleaks): allowlist /Users/<placeholder>/ in personal-path rule
1 parent 0ecdae9 commit b5be3e1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.gitleaks.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ regex = '''/Users/[a-zA-Z0-9_\-\.]+/|/home/[a-z][a-z0-9_\-]+/'''
1414
tags = ["pii", "personal-path"]
1515
keywords = ["/Users/", "/home/"]
1616

17+
[[rules.allowlists]]
18+
description = "RFC-style placeholder usernames in test fixtures (example/test/user/fake/fixture/dummy) are not real PII"
19+
regexes = ['''/Users/(example|test|user|fake|fixture|dummy)/''', '''/home/(example|test|user|fake|fixture|dummy)/''']
20+
1721
[[rules]]
1822
id = "tailscale-domain"
1923
description = "Tailscale network address or internal hostname leaked"

0 commit comments

Comments
 (0)