forked from redhat-appstudio/managed-gitops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitleaks.toml
36 lines (29 loc) · 1.02 KB
/
.gitleaks.toml
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
[allowlist]
description = "global allow list"
regexes = [
'''cnhOZmg3cm1NVQ==''',
'''N29DMGRxdHF6cw==''',
'''3CqCKcXLyN''',
'''a1Y4c0RvdkgxcHFPUTNJYWxSaDRubXlaZ3c3QUJGcmQ=''',
'''M0NxQ0tjWEx5Tg==''',
]
paths = [
'''docs/api.md''',
]
# How to test this:
#
# git clone https://gitlab.corp.redhat.com/infosec-public/apps/config/leak-patterns.git
# cd leak-patterns
# make setup
# make all.toml
# PATH_TO_SCAN=(...)
# bin/gitleaks --config-path all.toml --path $PATH_TO_SCAN --additional-config $PATH_TO_SCAN/.gitleaks.toml -v
#
# (Based on: https://gitlab.corp.redhat.com/infosec-public/apps/config/leak-patterns/#trying-these-out-against-your-own-repo)
# It's also possible to ignore specific paths, like below, but it's better to add the actual password value to ignore, like above
# paths = [
# '''manifests/postgresql-staging/postgresql-staging.yaml''',
# '''argocd_(.*)_test.go''',
# '''manifests/postgresql-staging/postgresql-staging-secret.yaml''',
# '''docs/development.md''',
# ]