Run of fresh-releases for gitleaks

Try this locally package):

debcheckout gitleaks
cd gitleaks
new-upstream --debian-revision=0kali1 --require-uscan --refresh-patches

Summary

new-upstream --debian-revision=0kali1 --require-uscan --refresh-patches

Diff

Branch: pristine-tar

diff --git a/gitleaks_7.4.1.orig.tar.gz.delta b/gitleaks_7.4.1.orig.tar.gz.delta
new file mode 100644
index 0000000..7c47ca5
Binary files /dev/null and b/gitleaks_7.4.1.orig.tar.gz.delta differ
diff --git a/gitleaks_7.4.1.orig.tar.gz.id b/gitleaks_7.4.1.orig.tar.gz.id
new file mode 100644
index 0000000..00fc09f
--- /dev/null
+++ b/gitleaks_7.4.1.orig.tar.gz.id
@@ -0,0 +1 @@
+8872128e9550333d347daefec884e70a7b69e731

Branch: upstream

Tag: upstream/7.4.1
diff --git a/README.md b/README.md
index e82e1cb..55c1983 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,6 @@
   <img alt="gitleaks" src="https://raw.githubusercontent.com/zricethezav/gifs/master/gitleakslogo.png" height="70" />
   <p align="center">
       <a href="https://travis-ci.org/zricethezav/gitleaks"><img alt="Travis" src="https://img.shields.io/travis/zricethezav/gitleaks/master.svg?style=flat-square"></a>
-      <a href="https://gitter.im/gitleaks/gitleaks"><img alt="Travis" src="https://badges.gitter.im/gitleaks/gitleaks.svg?style=flat-square"></a>
   </p>
 </p>
 
@@ -254,7 +253,7 @@ You can always set the exit code when leaves are encountered with the `--leaks-e
 ```
 
 ###  Sponsors ❤️
-#### Corporate Sponsors
+#### Organization Sponsors
 [![gammanet](https://gammanet.com/assets/images/new-design/gamma-logo.png)](https://gammanet.com/?utm_source=gitleaks&utm_medium=homepage&utm_campaign=gitleaks_promotion)
 
 Gamma proactively detects and remediates data leaks across cloud apps. Scan your public repos for secret leaks with [Gamma](https://gammanet.com/github-demo?utm_source=gitleaks&utm_medium=homepage&utm_campaign=gitleaks_promotion)
diff --git a/examples/pre-commit-config-example.yaml b/examples/pre-commit-config-example.yaml
new file mode 100644
index 0000000..a104e92
--- /dev/null
+++ b/examples/pre-commit-config-example.yaml
@@ -0,0 +1,14 @@
+# pre-commit configuration example to add docker-based hook that executes gitleaks
+# This should be added to .pre-commit-config.yaml coniguration file: https://pre-commit.com/#2-add-a-pre-commit-configuration
+
+repos:
+- repo: local
+  hooks:
+  - id: gitleaks
+    name: Gitleaks
+    language: docker_image
+    entry: zricethezav/gitleaks:v7.4.0
+    args:
+    - --config-path
+    - .gitleaks.toml
+    - --verbose
diff --git a/scan/unstaged.go b/scan/unstaged.go
index 6468e81..dc199da 100644
--- a/scan/unstaged.go
+++ b/scan/unstaged.go
@@ -184,6 +184,12 @@ func (us *UnstagedScanner) Scan() (Report, error) {
 				}
 			}
 
+			// Check if file is allow listed
+			if us.cfg.Allowlist.FileAllowed(filepath.Base(filename)) ||
+				us.cfg.Allowlist.PathAllowed(filename) {
+				continue
+			}
+
 			dmp := diffmatchpatch.New()
 			diffs := dmp.DiffMain(prevFileContents, currFileContents, false)
 			prettyDiff := diffPrettyText(diffs)

Branch: main

diff --git a/README.md b/README.md
index e82e1cb..55c1983 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,6 @@
   <img alt="gitleaks" src="https://raw.githubusercontent.com/zricethezav/gifs/master/gitleakslogo.png" height="70" />
   <p align="center">
       <a href="https://travis-ci.org/zricethezav/gitleaks"><img alt="Travis" src="https://img.shields.io/travis/zricethezav/gitleaks/master.svg?style=flat-square"></a>
-      <a href="https://gitter.im/gitleaks/gitleaks"><img alt="Travis" src="https://badges.gitter.im/gitleaks/gitleaks.svg?style=flat-square"></a>
   </p>
 </p>
 
@@ -254,7 +253,7 @@ You can always set the exit code when leaves are encountered with the `--leaks-e
 ```
 
 ###  Sponsors ❤️
-#### Corporate Sponsors
+#### Organization Sponsors
 [![gammanet](https://gammanet.com/assets/images/new-design/gamma-logo.png)](https://gammanet.com/?utm_source=gitleaks&utm_medium=homepage&utm_campaign=gitleaks_promotion)
 
 Gamma proactively detects and remediates data leaks across cloud apps. Scan your public repos for secret leaks with [Gamma](https://gammanet.com/github-demo?utm_source=gitleaks&utm_medium=homepage&utm_campaign=gitleaks_promotion)
diff --git a/debian/changelog b/debian/changelog
index 7e19740..4a16d71 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+gitleaks (7.4.1-0kali1) UNRELEASED; urgency=low
+
+  * New upstream release.
+
+ -- Kali Janitor <janitor@kali.org>  Wed, 28 Apr 2021 06:08:47 -0000
+
 gitleaks (7.4.0-0kali1) kali-dev; urgency=low
 
   [ Kali Janitor ]
diff --git a/examples/pre-commit-config-example.yaml b/examples/pre-commit-config-example.yaml
new file mode 100644
index 0000000..a104e92
--- /dev/null
+++ b/examples/pre-commit-config-example.yaml
@@ -0,0 +1,14 @@
+# pre-commit configuration example to add docker-based hook that executes gitleaks
+# This should be added to .pre-commit-config.yaml coniguration file: https://pre-commit.com/#2-add-a-pre-commit-configuration
+
+repos:
+- repo: local
+  hooks:
+  - id: gitleaks
+    name: Gitleaks
+    language: docker_image
+    entry: zricethezav/gitleaks:v7.4.0
+    args:
+    - --config-path
+    - .gitleaks.toml
+    - --verbose
diff --git a/scan/unstaged.go b/scan/unstaged.go
index 6468e81..dc199da 100644
--- a/scan/unstaged.go
+++ b/scan/unstaged.go
@@ -184,6 +184,12 @@ func (us *UnstagedScanner) Scan() (Report, error) {
 				}
 			}
 
+			// Check if file is allow listed
+			if us.cfg.Allowlist.FileAllowed(filepath.Base(filename)) ||
+				us.cfg.Allowlist.PathAllowed(filename) {
+				continue
+			}
+
 			dmp := diffmatchpatch.New()
 			diffs := dmp.DiffMain(prevFileContents, currFileContents, false)
 			prettyDiff := diffPrettyText(diffs)

Resulting package

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t kali-experimental gitleaks

Lintian Result

Full worker log Full build log