From 60dd6073126f66bec23bff9d13f86852ce76abc2 Mon Sep 17 00:00:00 2001 From: Greg Johnson Date: Mon, 28 Feb 2022 09:03:09 -0500 Subject: [PATCH] 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) --- config/gitleaks.toml | 2 +- testdata/repos/small/dotGit/index | Bin 317 -> 317 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/config/gitleaks.toml b/config/gitleaks.toml index 912cc447..14e45cc7 100644 --- a/config/gitleaks.toml +++ b/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" diff --git a/testdata/repos/small/dotGit/index b/testdata/repos/small/dotGit/index index 2766ed3c4054b325837bf68fdc087b3df9d07fc4..812b2d3b149c4ae371acf3af9eebc976484df1c0 100644 GIT binary patch delta 117 zcmdnXw3o@i#WTp6fq{Vuh?$eb555#q;+zVj85tN@7`CsBVPI%n!oa}z6{v<`qJfGE pSYGW>ER2S#i$hUYu~FnhPG%}=>CL~ZF06fU-F?c#ORrSV0swD^Cr1DP delta 117 zcmdnXw3o@i#WTp6fq{Vuh?x`b=dtPky7LD{GcqvnGuqB8VPI%n!oa}z6{tpJqJfGE oSpJWSH;jg=D??FNu~9^KhwEI6o}5NDzxfL{KC@zVO0i_@%