Config min version (#1955)

* init

* minVersion set

* sigh

* addressed some comments, fixed double validate bug
This commit is contained in:
Zachary Rice authored and GitHub committed 2025-10-16 13:53:00 -05:00
1 parent d22371873b
commit 3821f30b06
9 files changed
+84 -6

No files matched your search

+5
View File
@@ -13,6 +13,11 @@
title = "{{.Title}}"
# minVersion indicates the minimum Gitleaks version required to use this config.
# If the running version is older, a warning will be logged and not all
# config-enabled features are guaranteed to work.
minVersion = "v8.25.0"
{{ with .Allowlists }}{{ range $i, $allowlist := . }}{{ if or $allowlist.Regexes $allowlist.Paths $allowlist.Commits $allowlist.StopWords }}# TODO: change to [[allowlists]]{{println}}[allowlist]
{{- with .Description }}{{println}}description = "{{ . }}"{{ end }}
{{- with .MatchCondition }}{{println}}condition = "{{ .String }}"{{ end }}