|
|
@@ -59,13 +59,24 @@ paths = [
|
|
|
'''.*tests/.*''',
|
|
|
'''.*fixtures?/.*''',
|
|
|
'''.*/MEMORY\.md$''', # session memory may include token-shaped strings as docs
|
|
|
+ # API doc files — full of curl examples with "ap_your_key" / "ap_xxx..." placeholders
|
|
|
+ '''docs/api\.md$''',
|
|
|
+ '''docs/usage-guide\.md$''',
|
|
|
+ '''docs/.*-guide\.md$''', # 任何 *-guide.md 文档(同样多 curl 示例)
|
|
|
]
|
|
|
+regexTarget = "match"
|
|
|
regexes = [
|
|
|
'''<your-key>''',
|
|
|
'''<set-via-[A-Z_]+-env-var>''',
|
|
|
'''\$\{[A-Z_]+_API_KEY\}''',
|
|
|
'''YOUR_API_KEY''',
|
|
|
+ '''YOUR_TOKEN''',
|
|
|
+ '''your_(key|token|api_key|secret)''',
|
|
|
'''dummy[_-]?key''',
|
|
|
'''fake[_-]?key''',
|
|
|
'''sk-xxxx+''',
|
|
|
+ '''ap_your_key''', # agentpaas 文档占位符
|
|
|
+ '''ap_[a-z0-9]+\.\.\.''', # 截断式样例 (ap_a1b2c3d4e5f6...)
|
|
|
+ '''Bearer ap_your''', # 出现在 curl Authorization 头
|
|
|
+ '''Bearer YOUR_''', # 通用 README 写法
|
|
|
]
|