Explorar o código

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 %!s(int64=4) %!d(string=hai) anos
pai
achega
60dd607312
Modificáronse 2 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      config/gitleaks.toml
  2. BIN=BIN
      testdata/repos/small/dotGit/index

+ 1 - 1
config/gitleaks.toml

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

BIN=BIN
testdata/repos/small/dotGit/index