mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
refactor(allowlist): use iota for condition (#1569)
This commit is contained in:
1 parent
12034a71c5
commit
5c03fa4a3e
4 files changed
+22
-15
No files matched your search
@@ -71,7 +71,7 @@ tags = [
|
||||
{{ else }}
|
||||
{{ with $rule.Allowlists }}{{ range $i, $allowlist := . }}{{ if or $allowlist.Regexes $allowlist.Paths $allowlist.Commits $allowlist.StopWords }}
|
||||
[[rules.allowlists]]
|
||||
{{ with $allowlist.MatchCondition }}condition = "{{ . }}"
|
||||
{{ with $allowlist.MatchCondition }}condition = "{{ .String }}"
|
||||
{{ end -}}
|
||||
{{- with $allowlist.Commits }}commits = [
|
||||
{{ range $j, $commit := . }}"{{ $commit }}",{{ end }}
|
||||
|
||||
Reference in new issue
Block a user