From 06b1396a2a571ef897a52d8fa93b3aa775c4bcef Mon Sep 17 00:00:00 2001 From: Craig Smith Date: Mon, 20 Jun 2022 23:49:47 +1000 Subject: [PATCH] Fix duplicate TOML Rules and IDs (#889) * Remove duplicate rule * Fix duplicate rule IDs Co-authored-by: Craig Smith <5344211-craigmsmith@users.noreply.gitlab.com> --- config/gitleaks.toml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/config/gitleaks.toml b/config/gitleaks.toml index 7c9e3f22..5c51ef15 100644 --- a/config/gitleaks.toml +++ b/config/gitleaks.toml @@ -183,7 +183,7 @@ keywords = [ [[rules]] description = "Dropbox API secret" -id = "doppler-api-token" +id = "dropbox-api-token" regex = '''(?i)(?:dropbox)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{15})(?:['|\"|\n|\r|\s|\x60]|$)''' secretGroup = 1 keywords = [ @@ -292,15 +292,7 @@ keywords = [ [[rules]] description = "Finicity Secret Key" -id = "flutterwave-public-key" -regex = '''FLWSECK_TEST-(?i)[a-h0-9]{32}-X''' -keywords = [ - "flwseck_test", -] - -[[rules]] -description = "Finicity Secret Key" -id = "flutterwave-public-key" +id = "flutterwave-secret-key" regex = '''FLWSECK_TEST-(?i)[a-h0-9]{32}-X''' keywords = [ "flwseck_test",