From 958f55ac629b5351bb7b9c80f00c10823fef64d3 Mon Sep 17 00:00:00 2001 From: Zach Date: Sun, 8 Jun 2025 19:51:04 -0500 Subject: [PATCH] add just like that, no leaks --- .gitleaks.toml | 4 +++- .gitleaksignore | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitleaks.toml b/.gitleaks.toml index 25b2b4a5..d2dc6e58 100644 --- a/.gitleaks.toml +++ b/.gitleaks.toml @@ -1,4 +1,4 @@ -# This is NOT the default gitleaks config. The default gitleaks config is located +# This is NOT the default gitleaks config. The default gitleaks config is located # here: https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml # This gitleaks config extends the default config and ignores secrets located in the `cmd/generate/config/rules` @@ -9,4 +9,6 @@ useDefault = true [allowlist] paths = [ '''(^|/)cmd/generate/config/rules''', + '''.*test\.go''', + '''testdata''' ] diff --git a/.gitleaksignore b/.gitleaksignore index 9e0015f9..f38a99f0 100644 --- a/.gitleaksignore +++ b/.gitleaksignore @@ -940,3 +940,5 @@ e56870aecf8ac2733affc82e1ac25e3be9092db3:cmd/generate/config/rules/curl.go:gener 239e6323639b18ba8a1081f17788a658da075dd7:cmd/generate/config/rules/databricks.go:generic-api-key:22 c24a3a654b18d689732ec3199f0a19a254505b04:detect/detect_test.go:generic-api-key:52 c08cb1dc9aee87186dba4eebbc13b8aaa2351f0c:detect/detect_test.go:generic-api-key:52 +ee0da5c7fa5f3c9a7f1617e162497199cac3537f:README.md:generic-api-key:480 +782f3104786efdce0f809bce8a9ff31f2fa1c9ed:README.md:generic-api-key:481