-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitleaks.toml
More file actions
45 lines (37 loc) · 1.11 KB
/
.gitleaks.toml
File metadata and controls
45 lines (37 loc) · 1.11 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
# Gitleaks configuration
# https://github.com/gitleaks/gitleaks#configuration
title = "Gitleaks config"
# Extend the default rules (don't replace them)
[extend]
useDefault = true
# Paths to exclude from scanning
# These are dependency/build directories that contain
# test fixtures with fake secrets, not real leaks.
[allowlist]
description = "Global allowlist"
paths = [
# Swift Package Manager
'''\.build/''',
'''\.swiftpm/''',
# CocoaPods
'''Pods/''',
# Dependency checkouts and caches
'''Carthage/Checkouts/''',
'''vendor/''',
'''node_modules/''',
# Build artifacts
'''DerivedData/''',
'''build/''',
'''dist/''',
# Package lock files (contain hashes, not secrets)
'''Package\.resolved$''',
'''Podfile\.lock$''',
'''package-lock\.json$''',
'''yarn\.lock$''',
'''pnpm-lock\.yaml$''',
'''Gemfile\.lock$''',
# Test fixtures that intentionally contain fake secrets
'''(test|tests|spec|specs|__tests__)/.*fixtures?/''',
'''(test|tests|spec|specs|__tests__)/.*mocks?/''',
'''(test|tests|spec|specs|__tests__)/.*stubs?/''',
]