Ver código fonte

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 anos atrás
pai
commit
60dd607312
2 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      config/gitleaks.toml
  2. BIN
      testdata/repos/small/dotGit/index

+ 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