Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package gitleaks for openSUSE:Factory checked in at 2024-12-22 18:04:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gitleaks (Old) and /work/SRC/openSUSE:Factory/.gitleaks.new.1881 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gitleaks" Sun Dec 22 18:04:07 2024 rev:15 rq:1232949 version:8.22.0 Changes: -------- --- /work/SRC/openSUSE:Factory/gitleaks/gitleaks.changes 2024-12-20 15:28:19.474347098 +0100 +++ /work/SRC/openSUSE:Factory/.gitleaks.new.1881/gitleaks.changes 2024-12-22 18:04:25.608315980 +0100 @@ -1,0 +2,14 @@ +Sat Dec 21 14:17:25 UTC 2024 - opensuse_buildserv...@ojkastl.de + +- Update to version 8.22.0: + * replace std library regex engine with go-re2 (#1669) + +------------------------------------------------------------------- +Sat Dec 21 14:14:21 UTC 2024 - opensuse_buildserv...@ojkastl.de + +- Update to version 8.21.4: + * Update golang version to 1.23 (#1672) + * bump go in dockerfile + * log bytes (#1670) + +------------------------------------------------------------------- Old: ---- gitleaks-8.21.3.obscpio New: ---- gitleaks-8.22.0.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gitleaks.spec ++++++ --- /var/tmp/diff_new_pack.mNfKtq/_old 2024-12-22 18:04:26.236341774 +0100 +++ /var/tmp/diff_new_pack.mNfKtq/_new 2024-12-22 18:04:26.240341938 +0100 @@ -18,7 +18,7 @@ Name: gitleaks -Version: 8.21.3 +Version: 8.22.0 Release: 0 Summary: Protect and discover secrets using Gitleaks License: MIT ++++++ _service ++++++ --- /var/tmp/diff_new_pack.mNfKtq/_old 2024-12-22 18:04:26.272343252 +0100 +++ /var/tmp/diff_new_pack.mNfKtq/_new 2024-12-22 18:04:26.272343252 +0100 @@ -3,7 +3,7 @@ <param name="url">https://github.com/zricethezav/gitleaks</param> <param name="scm">git</param> <param name="exclude">.git</param> - <param name="revision">v8.21.3</param> + <param name="revision">v8.22.0</param> <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">v(.*)</param> <param name="changesgenerate">enable</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.mNfKtq/_old 2024-12-22 18:04:26.296344238 +0100 +++ /var/tmp/diff_new_pack.mNfKtq/_new 2024-12-22 18:04:26.300344402 +0100 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/zricethezav/gitleaks</param> - <param name="changesrevision">a9e6d8c9a73c848e0e0dcbbc62eed0ebe851be3f</param></service></servicedata> + <param name="changesrevision">a91c6717a0bac43c292234ea0ead531e99ed2c55</param></service></servicedata> (No newline at EOF) ++++++ gitleaks-8.21.3.obscpio -> gitleaks-8.22.0.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/Dockerfile new/gitleaks-8.22.0/Dockerfile --- old/gitleaks-8.21.3/Dockerfile 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/Dockerfile 2024-12-20 16:53:01.000000000 +0100 @@ -1,4 +1,4 @@ -FROM golang:1.22 AS build +FROM golang:1.23 AS build WORKDIR /go/src/github.com/zricethezav/gitleaks COPY . . RUN VERSION=$(git describe --tags --abbrev=0) && \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/base/config.go new/gitleaks-8.22.0/cmd/generate/config/base/config.go --- old/gitleaks-8.21.3/cmd/generate/config/base/config.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/base/config.go 2024-12-20 16:53:01.000000000 +0100 @@ -2,9 +2,9 @@ import ( "fmt" - "regexp" "strings" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/config" ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/1password.go new/gitleaks-8.22.0/cmd/generate/config/rules/1password.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/1password.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/1password.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/cmd/generate/secrets" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/age.go new/gitleaks-8.22.0/cmd/generate/config/rules/age.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/age.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/age.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/aws.go new/gitleaks-8.22.0/cmd/generate/config/rules/aws.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/aws.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/aws.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/cmd/generate/secrets" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/azure.go new/gitleaks-8.22.0/cmd/generate/config/rules/azure.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/azure.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/azure.go 2024-12-20 16:53:01.000000000 +0100 @@ -2,7 +2,8 @@ import ( "fmt" - "regexp" + + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/clojars.go new/gitleaks-8.22.0/cmd/generate/config/rules/clojars.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/clojars.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/clojars.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/curl.go new/gitleaks-8.22.0/cmd/generate/config/rules/curl.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/curl.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/curl.go 2024-12-20 16:53:01.000000000 +0100 @@ -2,7 +2,7 @@ import ( "fmt" - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/doppler.go new/gitleaks-8.22.0/cmd/generate/config/rules/doppler.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/doppler.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/doppler.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/duffel.go new/gitleaks-8.22.0/cmd/generate/config/rules/duffel.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/duffel.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/duffel.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/dynatrace.go new/gitleaks-8.22.0/cmd/generate/config/rules/dynatrace.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/dynatrace.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/dynatrace.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/easypost.go new/gitleaks-8.22.0/cmd/generate/config/rules/easypost.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/easypost.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/easypost.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/flutterwave.go new/gitleaks-8.22.0/cmd/generate/config/rules/flutterwave.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/flutterwave.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/flutterwave.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/frameio.go new/gitleaks-8.22.0/cmd/generate/config/rules/frameio.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/frameio.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/frameio.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/freemius.go new/gitleaks-8.22.0/cmd/generate/config/rules/freemius.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/freemius.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/freemius.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/gcp.go new/gitleaks-8.22.0/cmd/generate/config/rules/gcp.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/gcp.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/gcp.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/generic.go new/gitleaks-8.22.0/cmd/generate/config/rules/generic.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/generic.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/generic.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/cmd/generate/secrets" @@ -127,7 +127,7 @@ `[DEBUG] org.neo4j.neo4j-graphdb-api:jar:3.5.12:test`, `apiUrl=apigee.corpint.com`, // TODO: Jetbrains IML files (requires line-level allowlist). - //`<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.directory.api:api-asn1-api:1.0.0-M20" level="projcet" />` + // `<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.directory.api:api-asn1-api:1.0.0-M20" level="projcet" />` // Auth `author = "james.f...@ymail.com",`, @@ -156,9 +156,9 @@ `minisat-master-keying:x64-uwp=fail`, `IceSSL.KeyFile=s_rsa1024_priv.pem`, `"bucket_key": "SalesResults-1.2"`, - //`<TAR key="REF_ID_923.properties" value="/opts/config/alias/"/>`, + // `<TAR key="REF_ID_923.properties" value="/opts/config/alias/"/>`, `<key tag="SecurityIdentifier" name="SecurityIdentifier" type="STRING" />`, - //`packageKey":` + newPlausibleSecret(`[a-zA-Z0-9\-_.=]{30}`), + // `packageKey":` + newPlausibleSecret(`[a-zA-Z0-9\-_.=]{30}`), `schemaKey = 'DOC_Vector_5_32'`, `sequenceKey = "18"`, `app.keystore.file=env/cert.p12`, @@ -166,15 +166,15 @@ ` doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit;`, `o.keySelector=n,o.haKey=!1,`, // TODO: Requires line-level allowlists. - //`<add key="SchemaTable" value="G:\SchemaTable.xml" />`, + // `<add key="SchemaTable" value="G:\SchemaTable.xml" />`, // `secret: - //secretName: app-decryption-secret - //items: + // secretName: app-decryption-secret + // items: // - key: app-k8s.yml // path: app-k8s.yml`, // TODO: https://learn.microsoft.com/en-us/windows/apps/design/style/xaml-theme-resources - //`<Color x:Key="NormalBrushGradient1">#FFBAE4FF</Color>`, + // `<Color x:Key="NormalBrushGradient1">#FFBAE4FF</Color>`, // Password `password combination. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/github.go new/gitleaks-8.22.0/cmd/generate/config/rules/github.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/github.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/github.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/gitlab.go new/gitleaks-8.22.0/cmd/generate/config/rules/gitlab.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/gitlab.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/gitlab.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/harness.go new/gitleaks-8.22.0/cmd/generate/config/rules/harness.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/harness.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/harness.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/hashicorp.go new/gitleaks-8.22.0/cmd/generate/config/rules/hashicorp.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/hashicorp.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/hashicorp.go 2024-12-20 16:53:01.000000000 +0100 @@ -2,7 +2,8 @@ import ( "fmt" - "regexp" + + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/hashicorp_vault.go new/gitleaks-8.22.0/cmd/generate/config/rules/hashicorp_vault.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/hashicorp_vault.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/hashicorp_vault.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/jwt.go new/gitleaks-8.22.0/cmd/generate/config/rules/jwt.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/jwt.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/jwt.go 2024-12-20 16:53:01.000000000 +0100 @@ -3,8 +3,8 @@ import ( b64 "encoding/base64" "fmt" - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/cmd/generate/secrets" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/kubernetes.go new/gitleaks-8.22.0/cmd/generate/config/rules/kubernetes.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/kubernetes.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/kubernetes.go 2024-12-20 16:53:01.000000000 +0100 @@ -2,7 +2,8 @@ import ( "fmt" - "regexp" + + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/config" @@ -42,7 +43,7 @@ regexp.MustCompile(`[\w.-]+:(?:[ \t]*(?:\||>[-+]?)\s+)?[ \t]*(?:\{\{[ \t\w"|$:=,.-]+}}|""|'')`), // TODO: Requires multiple allowlists to target match. // Avoid overreach between directives. - //regexp.MustCompile(`(kind:(.|\s)+\n---\n(.|\s)+\bdata:|data:(.|\s)+\n---\n(.|\s)+\bkind:)`), + // regexp.MustCompile(`(kind:(.|\s)+\n---\n(.|\s)+\bdata:|data:(.|\s)+\n---\n(.|\s)+\bkind:)`), }, }, }, @@ -250,9 +251,9 @@ // name: mysecret // creationPolicy: Owner // - //--- + // --- // - //kind: ConfigMap + // kind: ConfigMap // data: // conversionStrategy: Default // decodingStrategy: None diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/linear.go new/gitleaks-8.22.0/cmd/generate/config/rules/linear.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/linear.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/linear.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/nuget.go new/gitleaks-8.22.0/cmd/generate/config/rules/nuget.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/nuget.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/nuget.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/openshift.go new/gitleaks-8.22.0/cmd/generate/config/rules/openshift.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/openshift.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/openshift.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/privatekey.go new/gitleaks-8.22.0/cmd/generate/config/rules/privatekey.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/privatekey.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/privatekey.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/pypi.go new/gitleaks-8.22.0/cmd/generate/config/rules/pypi.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/pypi.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/pypi.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/sentry.go new/gitleaks-8.22.0/cmd/generate/config/rules/sentry.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/sentry.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/sentry.go 2024-12-20 16:53:01.000000000 +0100 @@ -2,7 +2,7 @@ import ( "encoding/base64" - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/cmd/generate/secrets" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/shopify.go new/gitleaks-8.22.0/cmd/generate/config/rules/shopify.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/shopify.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/shopify.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/sidekiq.go new/gitleaks-8.22.0/cmd/generate/config/rules/sidekiq.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/sidekiq.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/sidekiq.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/cmd/generate/secrets" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/slack.go new/gitleaks-8.22.0/cmd/generate/config/rules/slack.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/slack.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/slack.go 2024-12-20 16:53:01.000000000 +0100 @@ -2,7 +2,7 @@ import ( "fmt" - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/teams.go new/gitleaks-8.22.0/cmd/generate/config/rules/teams.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/teams.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/teams.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/rules/twilio.go new/gitleaks-8.22.0/cmd/generate/config/rules/twilio.go --- old/gitleaks-8.21.3/cmd/generate/config/rules/twilio.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/rules/twilio.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package rules import ( - "regexp" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils" "github.com/zricethezav/gitleaks/v8/config" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/generate/config/utils/generate.go new/gitleaks-8.22.0/cmd/generate/config/utils/generate.go --- old/gitleaks-8.21.3/cmd/generate/config/utils/generate.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/generate/config/utils/generate.go 2024-12-20 16:53:01.000000000 +0100 @@ -6,8 +6,9 @@ import ( "fmt" - "regexp" "strings" + + regexp "github.com/wasilibs/go-re2" ) const ( @@ -92,20 +93,20 @@ "ini - unquoted2": "{i}Token = {s}", // JSON "json - string": "{\n \"{i}_token\": \"{s}\"\n}", - //TODO: "json - escaped string": "\\{\n \\\"{i}_token\\\": \\\"{s}\\\"\n\\}", - //TODO: "json - string key/value": "{\n \"name\": \"{i}_token\",\n \"value\": \"{s}\"\n}", + // TODO: "json - escaped string": "\\{\n \\\"{i}_token\\\": \\\"{s}\\\"\n\\}", + // TODO: "json - string key/value": "{\n \"name\": \"{i}_token\",\n \"value\": \"{s}\"\n}", // XML - //TODO: "xml - element": "<{i}Token>{s}</{i}Token>", + // TODO: "xml - element": "<{i}Token>{s}</{i}Token>", "xml - element multiline": "<{i}Token>\n {s}\n</{i}Token>", - //TODO: "xml - attribute": "<entry name=\"{i}Token\" value=\"{s}\" />", - //TODO: "xml - key/value elements": "<entry>\n <name=\"{i}Token\" />\n <value=\"{s}\" />\n</entry>", + // TODO: "xml - attribute": "<entry name=\"{i}Token\" value=\"{s}\" />", + // TODO: "xml - key/value elements": "<entry>\n <name=\"{i}Token\" />\n <value=\"{s}\" />\n</entry>", // YAML "yaml - singleline - unquoted": "{i}_token: {s}", "yaml - singleline - single quote": "{i}_token: '{s}'", "yaml - singleline - double quote": "{i}_token: \"{s}\"", - //TODO: "yaml - multiline - literal": "{i}_token: |\n {s}", - //TODO: "yaml - multiline - folding": "{i}_token: >\n {s}", - //"": "", + // TODO: "yaml - multiline - literal": "{i}_token: |\n {s}", + // TODO: "yaml - multiline - folding": "{i}_token: >\n {s}", + // "": "", // Programming Languages "C#": `string {i}Token = "{s}";`, @@ -113,26 +114,26 @@ "go - short": `{i}Token := "{s}"`, "go - backticks": "{i}Token := `{s}`", "java": "String {i}Token = \"{s}\";", - //TODO: "java - escaped quotes": `config.put("sasl.jaas.config", "org.apache.kafka.common.security.plain.PlainLoginModule required username=\"JDOE35\" {i}Token=\"{s}\""`, - //TODO:"kotlin - type": "var {i}Token: string = \"{s}\"", + // TODO: "java - escaped quotes": `config.put("sasl.jaas.config", "org.apache.kafka.common.security.plain.PlainLoginModule required username=\"JDOE35\" {i}Token=\"{s}\""`, + // TODO:"kotlin - type": "var {i}Token: string = \"{s}\"", "kotlin - notype": "var {i}Token = \"{s}\"", "php - string concat": `${i}Token .= "{s}"`, - //TODO: "php - null coalesce": `${i}Token ??= "{s}"`, + // TODO: "php - null coalesce": `${i}Token ??= "{s}"`, "python - single quote": "{i}Token = '{s}'", "python - double quote": `{i}Token = "{s}"`, - //"": "", + // "": "", // Miscellaneous - //TODO: "url - basic auth": `https://{i}:{s}@example.com/`, - //TODO: "url - query parameter": "https://example.com?{i}Token={s}&fooBar=baz", - //TODO: "comment - slash": "//{s} is the password", - //TODO: "comment - slash multiline": "/*{s} is the password", - //TODO: "comment - hashtag": "#{s} is the password", - //TODO: "comment - semicolon": ";{s} is the password", - //TODO: "csv - unquoted": `{i}Token,{s},`, + // TODO: "url - basic auth": `https://{i}:{s}@example.com/`, + // TODO: "url - query parameter": "https://example.com?{i}Token={s}&fooBar=baz", + // TODO: "comment - slash": "//{s} is the password", + // TODO: "comment - slash multiline": "/*{s} is the password", + // TODO: "comment - hashtag": "#{s} is the password", + // TODO: "comment - semicolon": ";{s} is the password", + // TODO: "csv - unquoted": `{i}Token,{s},`, "logstash": " \"{i}Token\" => \"{s}\"", - //TODO: "sql - tabular": "|{s}|", - //TODO: "sql": "", + // TODO: "sql - tabular": "|{s}|", + // TODO: "sql": "", // Makefile // See: https://github.com/gitleaks/gitleaks/pull/1191 @@ -141,9 +142,9 @@ "make - shell assignment": "{i}_TOKEN ::= \"{s}\"", "make - evaluated shell assignment": "{i}_TOKEN :::= \"{s}\"", "make - conditional assignment": "{i}_TOKEN ?= \"{s}\"", - //TODO: "make - append": "{i}_TOKEN += \"{s}\"", + // TODO: "make - append": "{i}_TOKEN += \"{s}\"", - //"": "", + // "": "", } replacer := strings.NewReplacer("{i}", identifier, "{s}", secret) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/cmd/root.go new/gitleaks-8.22.0/cmd/root.go --- old/gitleaks-8.21.3/cmd/root.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/cmd/root.go 2024-12-20 16:53:01.000000000 +0100 @@ -6,6 +6,7 @@ "os" "path/filepath" "strings" + "sync/atomic" "time" "github.com/rs/zerolog" @@ -40,6 +41,13 @@ Version: Version, } +const ( + BYTE = 1.0 + KILOBYTE = BYTE * 1000 + MEGABYTE = KILOBYTE * 1000 + GIGABYTE = MEGABYTE * 1000 +) + func init() { cobra.OnInitialize(initLog) rootCmd.PersistentFlags().StringP("config", "c", "", configDescription) @@ -59,6 +67,7 @@ rootCmd.PersistentFlags().StringSlice("enable-rule", []string{}, "only enable specific rules by id") rootCmd.PersistentFlags().StringP("gitleaks-ignore-path", "i", ".", "path to .gitleaksignore file or folder containing one") rootCmd.PersistentFlags().Int("max-decode-depth", 0, "allow recursive decoding up to this depth (default \"0\", no decoding is done)") + err := viper.BindPFlag("config", rootCmd.PersistentFlags().Lookup("config")) if err != nil { log.Fatal().Msgf("err binding config %s", err.Error()) @@ -321,15 +330,45 @@ return reportPath } +func bytesConvert(bytes uint64) string { + unit := "" + value := float32(bytes) + + switch { + case bytes >= GIGABYTE: + unit = "GB" + value = value / GIGABYTE + case bytes >= MEGABYTE: + unit = "MB" + value = value / MEGABYTE + case bytes >= KILOBYTE: + unit = "KB" + value = value / KILOBYTE + case bytes >= BYTE: + unit = "bytes" + case bytes == 0: + return "0" + } + + stringValue := strings.TrimSuffix( + fmt.Sprintf("%.2f", value), ".00", + ) + + return fmt.Sprintf("%s %s", stringValue, unit) +} + func findingSummaryAndExit(detector *detect.Detector, findings []report.Finding, exitCode int, start time.Time, err error) { + totalBytes := atomic.LoadUint64(&detector.TotalBytes) + bytesMsg := fmt.Sprintf("scanned ~%d bytes (%s)", totalBytes, bytesConvert(totalBytes)) if err == nil { - log.Info().Msgf("scan completed in %s", FormatDuration(time.Since(start))) + log.Info().Msgf("%s in %s", bytesMsg, FormatDuration(time.Since(start))) if len(findings) != 0 { log.Warn().Msgf("leaks found: %d", len(findings)) } else { log.Info().Msg("no leaks found") } } else { + log.Warn().Msg(bytesMsg) log.Warn().Msgf("partial scan completed in %s", FormatDuration(time.Since(start))) if len(findings) != 0 { log.Warn().Msgf("%d leaks found in partial scan", len(findings)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/config/allowlist.go new/gitleaks-8.22.0/config/allowlist.go --- old/gitleaks-8.21.3/config/allowlist.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/config/allowlist.go 2024-12-20 16:53:01.000000000 +0100 @@ -2,9 +2,9 @@ import ( "fmt" - "regexp" "strings" + regexp "github.com/wasilibs/go-re2" "golang.org/x/exp/maps" ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/config/allowlist_test.go new/gitleaks-8.22.0/config/allowlist_test.go --- old/gitleaks-8.21.3/config/allowlist_test.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/config/allowlist_test.go 2024-12-20 16:53:01.000000000 +0100 @@ -2,12 +2,12 @@ import ( "errors" - "regexp" "testing" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/stretchr/testify/assert" + regexp "github.com/wasilibs/go-re2" ) func TestCommitAllowed(t *testing.T) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/config/config.go new/gitleaks-8.22.0/config/config.go --- old/gitleaks-8.21.3/config/config.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/config/config.go 2024-12-20 16:53:01.000000000 +0100 @@ -3,12 +3,12 @@ import ( _ "embed" "fmt" - "regexp" "sort" "strings" "github.com/rs/zerolog/log" "github.com/spf13/viper" + regexp "github.com/wasilibs/go-re2" ) //go:embed gitleaks.toml diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/config/config_test.go new/gitleaks-8.22.0/config/config_test.go --- old/gitleaks-8.21.3/config/config_test.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/config/config_test.go 2024-12-20 16:53:01.000000000 +0100 @@ -2,10 +2,10 @@ import ( "fmt" - "regexp" "testing" "github.com/google/go-cmp/cmp" + regexp "github.com/wasilibs/go-re2" "github.com/spf13/viper" "github.com/stretchr/testify/assert" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/config/rule.go new/gitleaks-8.22.0/config/rule.go --- old/gitleaks-8.21.3/config/rule.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/config/rule.go 2024-12-20 16:53:01.000000000 +0100 @@ -2,8 +2,9 @@ import ( "fmt" - "regexp" "strings" + + regexp "github.com/wasilibs/go-re2" ) // Rules contain information that define details on how to detect secrets diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/config/utils.go new/gitleaks-8.22.0/config/utils.go --- old/gitleaks-8.21.3/config/utils.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/config/utils.go 2024-12-20 16:53:01.000000000 +0100 @@ -1,7 +1,7 @@ package config import ( - "regexp" + regexp "github.com/wasilibs/go-re2" ) func anyRegexMatch(f string, res []*regexp.Regexp) bool { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/detect/detect.go new/gitleaks-8.22.0/detect/detect.go --- old/gitleaks-8.21.3/detect/detect.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/detect/detect.go 2024-12-20 16:53:01.000000000 +0100 @@ -8,6 +8,7 @@ "regexp" "strings" "sync" + "sync/atomic" "github.com/zricethezav/gitleaks/v8/config" "github.com/zricethezav/gitleaks/v8/report" @@ -87,6 +88,8 @@ // report-related settings. ReportPath string Reporter report.Reporter + + TotalBytes uint64 } // Fragment contains the data to be scanned @@ -94,6 +97,8 @@ // Raw is the raw content of the fragment Raw string + Bytes []byte + // FilePath is the path to the file if applicable FilePath string SymlinkFile string @@ -178,6 +183,11 @@ // Detect scans the given fragment and returns a list of findings func (d *Detector) Detect(fragment Fragment) []report.Finding { + if fragment.Bytes == nil { + atomic.AddUint64(&d.TotalBytes, uint64(len(fragment.Raw))) + } + atomic.AddUint64(&d.TotalBytes, uint64(len(fragment.Bytes))) + var findings []report.Finding // check if filepath is allowed diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/detect/detect_test.go new/gitleaks-8.22.0/detect/detect_test.go --- old/gitleaks-8.21.3/detect/detect_test.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/detect/detect_test.go 2024-12-20 16:53:01.000000000 +0100 @@ -4,7 +4,6 @@ "fmt" "os" "path/filepath" - "regexp" "testing" "github.com/google/go-cmp/cmp" @@ -12,6 +11,7 @@ "github.com/spf13/viper" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + regexp "github.com/wasilibs/go-re2" "github.com/zricethezav/gitleaks/v8/config" "github.com/zricethezav/gitleaks/v8/report" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/detect/directory.go new/gitleaks-8.22.0/detect/directory.go --- old/gitleaks-8.21.3/detect/directory.go 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/detect/directory.go 2024-12-20 16:53:01.000000000 +0100 @@ -110,11 +110,12 @@ } // Count the number of newlines in this chunk - chunk := string(peekBuf.Bytes()) + chunk := peekBuf.String() linesInChunk := strings.Count(chunk, "\n") totalLines += linesInChunk fragment := Fragment{ Raw: chunk, + Bytes: peekBuf.Bytes(), FilePath: pa.Path, } if pa.Symlink != "" { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/go.mod new/gitleaks-8.22.0/go.mod --- old/gitleaks-8.21.3/go.mod 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/go.mod 2024-12-20 16:53:01.000000000 +0100 @@ -13,7 +13,7 @@ github.com/rs/zerolog v1.26.1 github.com/spf13/cobra v1.2.1 github.com/spf13/viper v1.8.1 - github.com/stretchr/testify v1.7.0 + github.com/stretchr/testify v1.9.0 golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 ) @@ -32,6 +32,8 @@ github.com/muesli/reflow v0.2.1-0.20210115123740-9e1d0d53df68 // indirect github.com/muesli/termenv v0.15.1 // indirect github.com/rivo/uniseg v0.2.0 // indirect + github.com/tetratelabs/wazero v1.8.2 // indirect + github.com/wasilibs/wazero-helpers v0.0.0-20240620070341-3dff1577cd52 // indirect golang.org/x/crypto v0.29.0 // indirect ) @@ -50,6 +52,7 @@ github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/subosito/gotenv v1.2.0 // indirect + github.com/wasilibs/go-re2 v1.8.0 golang.org/x/sync v0.9.0 // indirect golang.org/x/sys v0.27.0 // indirect golang.org/x/text v0.20.0 // indirect diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gitleaks-8.21.3/go.sum new/gitleaks-8.22.0/go.sum --- old/gitleaks-8.21.3/go.sum 2024-12-19 16:27:43.000000000 +0100 +++ new/gitleaks-8.22.0/go.sum 2024-12-20 16:53:01.000000000 +0100 @@ -284,10 +284,17 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= +github.com/tetratelabs/wazero v1.8.2 h1:yIgLR/b2bN31bjxwXHD8a3d+BogigR952csSDdLYEv4= +github.com/tetratelabs/wazero v1.8.2/go.mod h1:yAI0XTsMBhREkM/YDAK/zNou3GoiAce1P6+rp/wQhjs= +github.com/wasilibs/go-re2 v1.8.0 h1:6wpqZ31vdoJRSOM41bWEd1AbSmRe161yQkTzoihqwEg= +github.com/wasilibs/go-re2 v1.8.0/go.mod h1:RjA3Y/yW6xFL8Iyz8f5sVhttLq5b5DRF8baZ7Sh+elk= +github.com/wasilibs/wazero-helpers v0.0.0-20240620070341-3dff1577cd52 h1:OvLBa8SqJnZ6P+mjlzc2K7PM22rRUPE1x32G9DTPrC4= +github.com/wasilibs/wazero-helpers v0.0.0-20240620070341-3dff1577cd52/go.mod h1:jMeV4Vpbi8osrE/pKUxRZkVaA0EX7NZN0A9/oRzgpgY= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= ++++++ gitleaks.obsinfo ++++++ --- /var/tmp/diff_new_pack.mNfKtq/_old 2024-12-22 18:04:26.540354259 +0100 +++ /var/tmp/diff_new_pack.mNfKtq/_new 2024-12-22 18:04:26.544354423 +0100 @@ -1,5 +1,5 @@ name: gitleaks -version: 8.21.3 -mtime: 1734622063 -commit: a9e6d8c9a73c848e0e0dcbbc62eed0ebe851be3f +version: 8.22.0 +mtime: 1734709981 +commit: a91c6717a0bac43c292234ea0ead531e99ed2c55 ++++++ vendor.tar.gz ++++++ ++++ 90746 lines of diff (skipped)