-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitleaks.toml
More file actions
48 lines (40 loc) · 1.29 KB
/
Copy path.gitleaks.toml
File metadata and controls
48 lines (40 loc) · 1.29 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
48
# Gitleaks Configuration
# https://github.com/gitleaks/gitleaks
title = "ROSA Terraform Gitleaks Config"
[extend]
# Use the default gitleaks config as base
useDefault = true
#------------------------------------------------------------------------------
# Custom Rules
#------------------------------------------------------------------------------
[[rules]]
id = "openshift-token"
description = "OpenShift OAuth Token"
regex = '''sha256~[A-Za-z0-9_-]{43}'''
tags = ["token", "openshift"]
#------------------------------------------------------------------------------
# Allowlist - Files and Patterns to Ignore
#------------------------------------------------------------------------------
[allowlist]
description = "Global allowlist"
# Files to ignore
paths = [
'''.gitleaks.toml''',
'''.pre-commit-config.yaml''',
'''\.md$''',
'''go\.sum$''',
'''package-lock\.json$''',
]
# Patterns that are safe (example tokens, placeholders, demo AWS account IDs)
regexes = [
'''<your-.*>''',
'''YOUR_.*_HERE''',
'''PLACEHOLDER''',
'''example\.com''',
'''xxx+''',
'''sha256~[xX]+''',
# Placeholder AWS account ID used in example ARNs throughout tfvars and variable defaults
'''123456789012''',
# Placeholder KMS key UUID used in example ARNs
'''12345678-1234-1234-1234-123456789012''',
]