diff --git a/.gitleaks.toml b/.gitleaks.toml index dda1a73..c0c99b2 100644 --- a/.gitleaks.toml +++ b/.gitleaks.toml @@ -5,10 +5,9 @@ useDefault = true # Allowlist for test files and fixtures that intentionally contain placeholder tokens. # These are not real secrets and are used only for testing purposes. -[[allowlists]] +[allowlist] description = "Test fixture files containing placeholder tokens" paths = [ - '''testutil/test_constants\.go''', - '''.*_test\.go''', - '''testdata/.*''', + '''^testutil/test_constants\.go$''', + '''^testdata/''', ]