From bd8a794b37568528e8efecf00f2e95d5da2e8d32 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Mar 2026 14:28:15 +0000 Subject: [PATCH] chore(security): fix allowlist key name and tighten path patterns in .gitleaks.toml Co-authored-by: ivuorinen <11024+ivuorinen@users.noreply.github.com> --- .gitleaks.toml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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/''', ]