Przeglądaj źródła

readding default whitelist

zach rice 7 lat temu
rodzic
commit
8153da6e9c
2 zmienionych plików z 8 dodań i 1 usunięć
  1. 4 0
      CHANGELOG.md
  2. 4 1
      main.go

+ 4 - 0
CHANGELOG.md

@@ -1,6 +1,10 @@
 CHANGELOG
 =========
 
+1.19.1
+----
+- mistakenly removed default whitelist files
+
 1.19.0
 ----
 - 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 version = "1.19.0"
+const version = "1.19.1"
 const errExit = 2
 const leakExit = 1
 const defaultConfig = `
@@ -173,6 +173,9 @@ description = "Slack"
 regex = '''xox[baprs]-([0-9a-zA-Z]{10,48})?'''
 
 [whitelist]
+files = [
+  "(.*?)(jpg|gif|doc|pdf|bin)$" 
+]
 #commits = [
 #  "BADHA5H1",
 #  "BADHA5H2",