Skip to content

Commit 4d194a9

Browse files
authored
fix: add gitleaks check of env and fix VePromptPilot of tutorial (#72)
1 parent 4508aa3 commit 4d194a9

File tree

2 files changed

+2105
-2099
lines changed

2 files changed

+2105
-2099
lines changed

.gitleaks.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,10 @@ regex = '''.{0,20}.bytedance\.larkoffice\.com.{0,50}'''
6464
[[rules]]
6565
id = "private-ip-10-range"
6666
description = "Private IP address pattern (10.x.x.x)"
67-
regex = '''(10\.\d{1,3}\.\d{1,3}\.\d{1,3})'''
67+
regex = '''(10\.\d{1,3}\.\d{1,3}\.\d{1,3})'''
68+
69+
70+
[[rules]]
71+
id = "empty-env-key-pattern"
72+
description = "Empty environment variables with KEY pattern"
73+
regex = '''os\.environ\[".*?KEY"\]\s*=\s*".+"'''

0 commit comments

Comments
 (0)