-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.gitleaks.toml
More file actions
47 lines (40 loc) · 1.26 KB
/
.gitleaks.toml
File metadata and controls
47 lines (40 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Gitleaks config for OSS boundary enforcement
# Blocks internal infrastructure patterns from leaking into the public repo.
# For detailed internal blocklists, see .gitleaks-internal.toml (gitignored).
title = "model-ledger OSS boundary rules"
# Internal corporate hostnames
[[rules]]
id = "internal-hostname"
description = "Internal corporate hostname"
regex = '''[a-z0-9.-]+\.sqprod\.co'''
keywords = ["sqprod"]
# Internal Artifactory / PyPI mirror
[[rules]]
id = "internal-artifactory"
description = "Internal Artifactory hostname"
regex = '''artifactory\.global\.square'''
keywords = ["artifactory.global"]
[[rules]]
id = "internal-pypi-mirror"
description = "Internal PyPI mirror"
regex = '''block-artifacts\.com'''
keywords = ["block-artifacts"]
# Corporate email in source (OK in pyproject.toml authors, git config)
[[rules]]
id = "corporate-email"
description = "Corporate email domain in source files"
regex = '''@squareup\.com'''
keywords = ["squareup.com"]
# Internal GNS hostname
[[rules]]
id = "internal-gns"
description = "Internal GNS hostname"
regex = '''gns\.square'''
keywords = ["gns.square"]
# Global allowlist — files where matches are expected
[allowlist]
paths = [
'''\.gitleaks\.toml$''',
'''\.gitleaks-internal\.toml$''',
'''uv\.lock$''',
]