From f2f2083dd19457518072b02ef719e5619ad5eaee Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Mon, 2 Feb 2026 11:45:53 +0800 Subject: [PATCH] =?UTF-8?q?chore(config):=20=E6=9B=B4=E6=96=B0=20gitleaks?= =?UTF-8?q?=20=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将路径匹配从单引号格式改为双引号格式 - 将正则表达式从单引号格式改为双引号格式 - 在 allowlist 部分添加描述性空行以提高可读性 - 统一配置文件的字符串引用格式为双引号 --- .gitleaks.toml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitleaks.toml b/.gitleaks.toml index 27db994..3e52f5f 100644 --- a/.gitleaks.toml +++ b/.gitleaks.toml @@ -1,12 +1,13 @@ [allowlist] description = "Ignore test/demo secrets" + paths = [ - '''docs/.*''', - '''.*Test.*\.json''', - '''.*Development.*''' + "docs/.*", + ".*Test.*\\.json", + ".*Development.*" ] regexes = [ - '''FAKE_.*_KEY''', - '''TEST_.*_TOKEN''' + "FAKE_.*_KEY", + "TEST_.*_TOKEN" ]