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

+2 -1
View File
@@ -19,6 +19,7 @@ import (
"github.com/zricethezav/gitleaks/v8/logging"
"github.com/zricethezav/gitleaks/v8/regexp"
"github.com/zricethezav/gitleaks/v8/report"
"github.com/zricethezav/gitleaks/v8/version"
)
const banner = `
@@ -42,7 +43,7 @@ var (
rootCmd = &cobra.Command{
Use: "gitleaks",
Short: "Gitleaks scans code, past or present, for secrets",
Version: Version,
Version: version.Version,
}
// diagnostics manager is global to ensure it can be started before a scan begins