Explorar o código

Merge pull request #144 from zricethezav/fix/files

readding default whitelist
Zachary Rice %!s(int64=7) %!d(string=hai) anos
pai
achega
60267523e9
Modificáronse 2 ficheiros con 8 adicións e 1 borrados
  1. 4 0
      CHANGELOG.md
  2. 4 1
      main.go

+ 4 - 0
CHANGELOG.md

@@ -1,6 +1,10 @@
 CHANGELOG
 CHANGELOG
 =========
 =========
 
 
+1.19.1
+----
+- mistakenly removed default whitelist files
+
 1.19.0
 1.19.0
 ----
 ----
 - removed `--all-refs`. By default gitleaks now scans all branches, remote and local.
 - removed `--all-refs`. By default gitleaks now scans all branches, remote and local.

+ 4 - 1
main.go

@@ -133,7 +133,7 @@ type entropyRange struct {
 }
 }
 
 
 const defaultGithubURL = "https://api.github.com/"
 const defaultGithubURL = "https://api.github.com/"
-const version = "1.19.0"
+const version = "1.19.1"
 const errExit = 2
 const errExit = 2
 const leakExit = 1
 const leakExit = 1
 const defaultConfig = `
 const defaultConfig = `
@@ -173,6 +173,9 @@ description = "Slack"
 regex = '''xox[baprs]-([0-9a-zA-Z]{10,48})?'''
 regex = '''xox[baprs]-([0-9a-zA-Z]{10,48})?'''
 
 
 [whitelist]
 [whitelist]
+files = [
+  "(.*?)(jpg|gif|doc|pdf|bin)$" 
+]
 #commits = [
 #commits = [
 #  "BADHA5H1",
 #  "BADHA5H1",
 #  "BADHA5H2",
 #  "BADHA5H2",