chore(config): 更新 gitleaks 配置文件格式

- 将路径匹配从单引号格式改为双引号格式
- 将正则表达式从单引号格式改为双引号格式
- 在 allowlist 部分添加描述性空行以提高可读性
- 统一配置文件的字符串引用格式为双引号
This commit is contained in:
GeWuYou 2026-02-02 11:45:53 +08:00
parent defcca85f3
commit f2f2083dd1

View File

@ -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"
]