4
0
Эх сурвалжийг харах

GitLab pats may contain underscores as well as dashes (#794)

* gitlab pats may contain underscores as well as dashes

* include testdata index binary

Co-authored-by: Greg Johnson (codeEmitter) <gjohnson@gitlab.com>
Greg Johnson 4 жил өмнө
parent
commit
60dd607312

+ 1 - 1
config/gitleaks.toml

@@ -32,7 +32,7 @@ title = "gitleaks config"
 [[rules]]
 id = "gitlab-pat"
 description = "GitLab Personal Access Token"
-regex = '''glpat-[0-9a-zA-Z\-]{20}'''
+regex = '''glpat-[0-9a-zA-Z\-\_]{20}'''
 
 [[rules]]
 id = "aws-access-token"

BIN
testdata/repos/small/dotGit/index