mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
refactor(kubernetes-secret): collapse rules and update regex (#1462)
This commit is contained in:
1 parent
128cd22f7c
commit
3698060a2b
4 files changed
+397
-56
No files matched your search
@@ -51,7 +51,7 @@ tags = [
|
||||
regexTarget = "{{ . }}"{{ end -}}
|
||||
{{- with $rule.Allowlist.Regexes }}
|
||||
regexes = [
|
||||
{{ range $j, $regex := . }}"{{ $regex }}",{{ end }}
|
||||
{{ range $j, $regex := . }}'''{{ $regex }}''',{{ end }}
|
||||
]{{ end }}
|
||||
{{- with $rule.Allowlist.Paths }}paths = [
|
||||
{{ range $j, $path := . }}"{{ $path }}",{{ end }}
|
||||
|
||||
Reference in new issue
Block a user