Skip to content

Commit

Permalink
chore(config): fix inconsistent generated values (gitleaks#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
rgmz authored Jun 16, 2023
1 parent 7804d65 commit 06db3b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/generate/config/rules/config.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ title = "gitleaks config"
description = "global allow lists"
paths = [
'''gitleaks.toml''',
'''(.*?)(jpg|gif|doc|docx|zip|xls|pdf|bin|svg|socket)$''',
'''(.*?)(jpg|gif|doc|docx|zip|xls|pdf|bin|svg|socket|vsidx|v2|suo|wsuo|.dll|pdb|exe)$''',
'''(go.mod|go.sum)$''',
'''gradle.lockfile''',
'''node_modules''',
Expand Down
2 changes: 1 addition & 1 deletion config/gitleaks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2377,7 +2377,7 @@ id = "openai-api-key"
regex = '''(?i)\b(sk-[a-zA-Z0-9]{20}T3BlbkFJ[a-zA-Z0-9]{20})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
"sk-","t3blbkfj",
"t3blbkfj",
]

[[rules]]
Expand Down

0 comments on commit 06db3b9

Please sign in to comment.