Skip to content

Commit 31364f3

Browse files
committed
Improve the gitleaks configuration
1 parent c011d59 commit 31364f3

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.gitleaks.toml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
[whitelist]
2-
# As of v4, gitleaks only matches against filename, not path in the
3-
# files directive. Leaving content for backwards compatibility.
4-
files = [
5-
"secrets/*",
1+
[allowlist]
2+
paths =
3+
'''.*\.html$''',
4+
]
5+
6+
regexes = [
7+
# Ignore lines containing these
8+
'''oc login''',
9+
'''sha256~AUv_4DGQoFMVzmdO3cg3v4vnUuaV3lYcy6N2SCwVOz4''',
610
]

modules/mcg-deploying-mcg-pattern.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ $ cd /path/to/your/repository
249249
+
250250
[source,terminal]
251251
----
252-
$ oc login --token=sha256~AUv_4DGQoFMVzmdO3cg3v4vnUuaV3lYcy6N2SCwVOz4 --server=https://api.<your-cluster>.<domain>:6443
252+
$ oc login --token=<retrieved-token> --server=https://api.<your-cluster>.<domain>:6443
253253
----
254254

255255
. Alternatively log in by running the following command:

0 commit comments

Comments
 (0)