refactor(kubernetes-secret): collapse rules and update regex (#1462)

This commit is contained in:
Richard Gomez authored and GitHub committed 2024-09-18 10:22:10 -05:00
1 parent 128cd22f7c
commit 3698060a2b
4 files changed
+397 -56

No files matched your search

+1 -1
View File
@@ -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 }}