From 2ccd40677db07877be4a5919a16f6a180fc2a7e4 Mon Sep 17 00:00:00 2001 From: zach rice Date: Sun, 10 Nov 2019 19:28:02 -0500 Subject: [PATCH] adding alt config test --- audit/audit_test.go | 10 ++ test_data/test_local_owner_aws_leak.json | 140 ++++++++++++++++++ ...st_local_repo_four_alt_config_entropy.json | 30 ++++ .../test_repo_4/dotGit/COMMIT_EDITMSG | 1 + test_data/test_repos/test_repo_4/dotGit/HEAD | 1 + .../test_repos/test_repo_4/dotGit/config | 7 + .../test_repos/test_repo_4/dotGit/description | 1 + test_data/test_repos/test_repo_4/dotGit/index | Bin 0 -> 305 bytes .../test_repo_4/dotGit/info/exclude | 6 + .../test_repos/test_repo_4/dotGit/logs/HEAD | 18 +++ .../test_repo_4/dotGit/logs/refs/heads/dev | 3 + .../test_repo_4/dotGit/logs/refs/heads/master | 14 ++ .../0b/c3a0c9536cc7273b74f48edcc6adead16333f7 | Bin 0 -> 55 bytes .../0e/cd6aeaa0b76f5cad8077ae5be8420457403bfc | Bin 0 -> 115 bytes .../15/40f193bc25b494cde092597a79af04013807ec | Bin 0 -> 3391 bytes .../17/471a5fda722a9e423f1a0d3f0d267ea009d41c | Bin 0 -> 181 bytes .../18/51114bbb7484cccd61f18c71649699d73ede6c | Bin 0 -> 121 bytes .../18/5715c36f82be353f34845811270a4d0ae4b24e | Bin 0 -> 83 bytes .../20/ef26716304570775cb395f37cb2d626bbd0a82 | Bin 0 -> 83 bytes .../24/3d535d84ed97fbc20d09c9d2c2f417507fe461 | Bin 0 -> 59 bytes .../29/b514fe50d6a7b2aa18cd581b46a85b84c2d4b3 | Bin 0 -> 425 bytes .../3d/dab16668fe919638b76dd48c96bedf0e2276ca | Bin 0 -> 94 bytes .../4a/3ffb6df0f421fdf325afae19dc749f8f6b1bfb | Bin 0 -> 125 bytes .../4b/a23978297d33c8d7744f059cc5bca2385e262d | Bin 0 -> 83 bytes .../4b/c47c2d3aaa25385e3354ea34136456c2260a12 | Bin 0 -> 121 bytes .../51/f6dcf6b89b93f4075ba92c400b075631a6cc93 | 3 + .../5a/ccbc40c35906d99f073881fb8746c314f9d59f | 1 + .../5d/5c8724e8787e69cebcc9ea4bceb47d9941656e | Bin 0 -> 83 bytes .../5d/630e1163864c8b5616199962390a36a8a53b69 | Bin 0 -> 53 bytes .../5e/a982157d053ce35a9b79394973c7c8901f317c | Bin 0 -> 83 bytes .../64/99d414147df9f56cbecd26ca710c39e4834024 | Bin 0 -> 97 bytes .../64/cfcee9aad1c84581631636bfc54f2050718d1a | Bin 0 -> 156 bytes .../67/c45b6048e42a2bd5512662ca6cd2bfc74c7842 | 5 + .../68/b020592645020c9afb7462e17842a1cc723071 | Bin 0 -> 83 bytes .../69/b7669aa8e125ef0e14abce31911e84dd09e25e | Bin 0 -> 83 bytes .../7b/2eba252004b7c867413def2a0984d545daab8b | Bin 0 -> 160 bytes .../82/4b8a2b468fcfa244e096bd54b83508b85ef488 | Bin 0 -> 115 bytes .../82/8595723b76e4a35b5253d9f2ccb4f897f1845a | Bin 0 -> 163 bytes .../83/c50b16ff4b3149142517a2adc8662f04b5b323 | Bin 0 -> 54 bytes .../84/ac4e80d4dbf2c968b64e9d4005f5079795bb81 | 3 + .../85/699e429f33e75541530998a5b5d457a12e6285 | Bin 0 -> 124 bytes .../8c/b18882408aad0b2abf556bf1f2c5478ef328f5 | Bin 0 -> 68 bytes .../96/c1c0a3632af796efd3942cc1d81d7af48ead3e | Bin 0 -> 133 bytes .../99/6865bb912f3bc45898a370a13aadb315014b55 | 3 + .../a6/214eec6a6290fec81fe250e5b73b86d634a981 | Bin 0 -> 67 bytes .../b1/07a0d7a337f04413efa73d337461f548aef336 | Bin 0 -> 83 bytes .../b1/0b3e2cb320a8c211fda94c4567299d37de7776 | Bin 0 -> 164 bytes .../b2/eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba | Bin 0 -> 162 bytes .../b4/70f07d2aaf2b537808b285cab667259b4e0ca7 | Bin 0 -> 121 bytes .../b8/a52870f2b093699e0d98cb896387c87e0c98a6 | Bin 0 -> 66 bytes .../c0/23aab082c73abd327675ad485fe78bb427ae21 | Bin 0 -> 84 bytes .../c1/bfab622827026dbd2eba4e2d75a8c523e55dc2 | Bin 0 -> 95 bytes .../cd/5eb8bef855f73c46b97b4c088badffdc40ebe9 | 3 + .../ce/835da266b3f8c34e4b7f398693ed068f67cb30 | 1 + .../d8/ac0b73aeeb45843319cdc5ce506516eb49bf7a | 1 + .../de/ea550dd6c7acaf0e59432600593533984a2125 | Bin 0 -> 158 bytes .../e0/894b9037d76464dbb8d25768c9a036987d6ace | Bin 0 -> 121 bytes .../e8/abc5d9c3ea7760bf20054e8dada3832f9a00a9 | Bin 0 -> 54 bytes .../ef/8fd94f0a1a6f503949ac4b56f3604ec4e942e3 | Bin 0 -> 99 bytes .../f6/1cd8587b7ac1d75a89a0c9af870a2f24c60263 | 2 + .../test_repo_4/dotGit/refs/heads/dev | 1 + .../test_repo_4/dotGit/refs/heads/master | 1 + .../test_repos/test_repo_4/gitleaks.toml | 6 + .../test_repos/test_repo_4/no_secrets.md | 1 + test_data/test_repos/test_repo_4/secrets.md | 21 +++ 65 files changed, 283 insertions(+) create mode 100644 test_data/test_local_repo_four_alt_config_entropy.json create mode 100644 test_data/test_repos/test_repo_4/dotGit/COMMIT_EDITMSG create mode 100644 test_data/test_repos/test_repo_4/dotGit/HEAD create mode 100644 test_data/test_repos/test_repo_4/dotGit/config create mode 100644 test_data/test_repos/test_repo_4/dotGit/description create mode 100644 test_data/test_repos/test_repo_4/dotGit/index create mode 100644 test_data/test_repos/test_repo_4/dotGit/info/exclude create mode 100644 test_data/test_repos/test_repo_4/dotGit/logs/HEAD create mode 100644 test_data/test_repos/test_repo_4/dotGit/logs/refs/heads/dev create mode 100644 test_data/test_repos/test_repo_4/dotGit/logs/refs/heads/master create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/0b/c3a0c9536cc7273b74f48edcc6adead16333f7 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/0e/cd6aeaa0b76f5cad8077ae5be8420457403bfc create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/15/40f193bc25b494cde092597a79af04013807ec create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/17/471a5fda722a9e423f1a0d3f0d267ea009d41c create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/18/51114bbb7484cccd61f18c71649699d73ede6c create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/18/5715c36f82be353f34845811270a4d0ae4b24e create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/20/ef26716304570775cb395f37cb2d626bbd0a82 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/24/3d535d84ed97fbc20d09c9d2c2f417507fe461 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/29/b514fe50d6a7b2aa18cd581b46a85b84c2d4b3 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/3d/dab16668fe919638b76dd48c96bedf0e2276ca create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/4a/3ffb6df0f421fdf325afae19dc749f8f6b1bfb create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/4b/a23978297d33c8d7744f059cc5bca2385e262d create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/4b/c47c2d3aaa25385e3354ea34136456c2260a12 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/51/f6dcf6b89b93f4075ba92c400b075631a6cc93 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/5a/ccbc40c35906d99f073881fb8746c314f9d59f create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/5d/5c8724e8787e69cebcc9ea4bceb47d9941656e create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/5d/630e1163864c8b5616199962390a36a8a53b69 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/5e/a982157d053ce35a9b79394973c7c8901f317c create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/64/99d414147df9f56cbecd26ca710c39e4834024 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/64/cfcee9aad1c84581631636bfc54f2050718d1a create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/67/c45b6048e42a2bd5512662ca6cd2bfc74c7842 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/68/b020592645020c9afb7462e17842a1cc723071 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/69/b7669aa8e125ef0e14abce31911e84dd09e25e create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/7b/2eba252004b7c867413def2a0984d545daab8b create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/82/4b8a2b468fcfa244e096bd54b83508b85ef488 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/82/8595723b76e4a35b5253d9f2ccb4f897f1845a create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/83/c50b16ff4b3149142517a2adc8662f04b5b323 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/84/ac4e80d4dbf2c968b64e9d4005f5079795bb81 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/85/699e429f33e75541530998a5b5d457a12e6285 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/8c/b18882408aad0b2abf556bf1f2c5478ef328f5 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/96/c1c0a3632af796efd3942cc1d81d7af48ead3e create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/99/6865bb912f3bc45898a370a13aadb315014b55 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/a6/214eec6a6290fec81fe250e5b73b86d634a981 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/b1/07a0d7a337f04413efa73d337461f548aef336 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/b1/0b3e2cb320a8c211fda94c4567299d37de7776 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/b2/eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/b4/70f07d2aaf2b537808b285cab667259b4e0ca7 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/b8/a52870f2b093699e0d98cb896387c87e0c98a6 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/c0/23aab082c73abd327675ad485fe78bb427ae21 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/c1/bfab622827026dbd2eba4e2d75a8c523e55dc2 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/cd/5eb8bef855f73c46b97b4c088badffdc40ebe9 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/ce/835da266b3f8c34e4b7f398693ed068f67cb30 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/d8/ac0b73aeeb45843319cdc5ce506516eb49bf7a create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/de/ea550dd6c7acaf0e59432600593533984a2125 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/e0/894b9037d76464dbb8d25768c9a036987d6ace create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/e8/abc5d9c3ea7760bf20054e8dada3832f9a00a9 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/ef/8fd94f0a1a6f503949ac4b56f3604ec4e942e3 create mode 100644 test_data/test_repos/test_repo_4/dotGit/objects/f6/1cd8587b7ac1d75a89a0c9af870a2f24c60263 create mode 100644 test_data/test_repos/test_repo_4/dotGit/refs/heads/dev create mode 100644 test_data/test_repos/test_repo_4/dotGit/refs/heads/master create mode 100644 test_data/test_repos/test_repo_4/gitleaks.toml create mode 100644 test_data/test_repos/test_repo_4/no_secrets.md create mode 100644 test_data/test_repos/test_repo_4/secrets.md diff --git a/audit/audit_test.go b/audit/audit_test.go index d70c9076..54bb906d 100644 --- a/audit/audit_test.go +++ b/audit/audit_test.go @@ -137,6 +137,16 @@ func TestAudit(t *testing.T) { }, wantPath: "../test_data/test_entropy.json", }, + { + description: "test local repo four entropy alternative config", + opts: options.Options{ + RepoPath: "../test_data/test_repos/test_repo_4", + Report: "../test_data/test_local_repo_four_alt_config_entropy.json.got", + RepoConfig: true, + + }, + wantPath: "../test_data/test_local_repo_four_alt_config_entropy.json.got", + }, } for _, test := range tests { diff --git a/test_data/test_local_owner_aws_leak.json b/test_data/test_local_owner_aws_leak.json index f289db96..6e30e5d0 100644 --- a/test_data/test_local_owner_aws_leak.json +++ b/test_data/test_local_owner_aws_leak.json @@ -236,5 +236,145 @@ "date": "2019-10-25T12:58:39-04:00", "tags": "key, AWS", "severity": "" + }, + { + "line": "const AWSKEY = \"AKIALALEMEL33243OLIAE\"", + "offender": "AKIALALEMEL33243OLIA", + "commit": "cd5eb8bef855f73c46b97b4c088badffdc40ebe9", + "repo": "test_repo_4", + "rule": "AWS Manager ID", + "commitMessage": "rm secrets\n", + "author": "zach rice", + "email": "zricer@protonmail.com", + "file": "secrets.md", + "date": "2019-10-25T13:54:26-04:00", + "tags": "key, AWS", + "severity": "" + }, + { + "line": "const AWSKEY = \"AKIALALEMEL33243OLIAE\"", + "offender": "AKIALALEMEL33243OLIA", + "commit": "84ac4e80d4dbf2c968b64e9d4005f5079795bb81", + "repo": "test_repo_4", + "rule": "AWS Manager ID", + "commitMessage": "more secrets\n", + "author": "zach rice", + "email": "zricer@protonmail.com", + "file": "secrets.md", + "date": "2019-10-25T13:54:08-04:00", + "tags": "key, AWS", + "severity": "" + }, + { + "line": "AWS secret: \"AKIALALEMEL33243OLIAE\"", + "offender": "AKIALALEMEL33243OLIA", + "commit": "64cfcee9aad1c84581631636bfc54f2050718d1a", + "repo": "test_repo_4", + "rule": "AWS Manager ID", + "commitMessage": "rm secrets\n", + "author": "zach rice", + "email": "zricer@protonmail.com", + "file": "secrets.md", + "date": "2019-10-25T13:36:22-04:00", + "tags": "key, AWS", + "severity": "" + }, + { + "line": "AWS secret: \"AKIALALEMEL33243OLIAE\"", + "offender": "AKIALALEMEL33243OLIA", + "commit": "deea550dd6c7acaf0e59432600593533984a2125", + "repo": "test_repo_4", + "rule": "AWS Manager ID", + "commitMessage": "dev branch\n", + "author": "zach rice", + "email": "zricer@protonmail.com", + "file": "secrets.md", + "date": "2019-10-25T13:35:03-04:00", + "tags": "key, AWS", + "severity": "" + }, + { + "line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", + "offender": "AKIALALEMEL33243OLIB", + "commit": "f61cd8587b7ac1d75a89a0c9af870a2f24c60263", + "repo": "test_repo_4", + "rule": "AWS Manager ID", + "commitMessage": "rm secrets again\n", + "author": "zach rice", + "email": "zricer@protonmail.com", + "file": "secrets.md", + "date": "2019-10-25T13:12:32-04:00", + "tags": "key, AWS", + "severity": "" + }, + { + "line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", + "offender": "AKIALALEMEL33243OLIB", + "commit": "b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba", + "repo": "test_repo_4", + "rule": "AWS Manager ID", + "commitMessage": "adding another one\n", + "author": "zach rice", + "email": "zricer@protonmail.com", + "file": "secrets.md", + "date": "2019-10-25T13:12:08-04:00", + "tags": "key, AWS", + "severity": "" + }, + { + "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", + "offender": "AKIALALEMEL33243OLIA", + "commit": "996865bb912f3bc45898a370a13aadb315014b55", + "repo": "test_repo_4", + "rule": "AWS Manager ID", + "commitMessage": "committing pem\n", + "author": "zach rice", + "email": "zricer@protonmail.com", + "file": "secrets.md", + "date": "2019-10-25T13:07:41-04:00", + "tags": "key, AWS", + "severity": "" + }, + { + "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", + "offender": "AKIALALEMEL33243OLIA", + "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", + "repo": "test_repo_4", + "rule": "AWS Manager ID", + "commitMessage": "wait this is actually adding an aws secret\n", + "author": "zach rice", + "email": "zricer@protonmail.com", + "file": "secrets.md", + "date": "2019-10-25T13:01:27-04:00", + "tags": "key, AWS", + "severity": "" + }, + { + "line": "Here's an AWS secret: AKIALALEMEL33243OLIAE", + "offender": "AKIALALEMEL33243OLIA", + "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", + "repo": "test_repo_4", + "rule": "AWS Manager ID", + "commitMessage": "wait this is actually adding an aws secret\n", + "author": "zach rice", + "email": "zricer@protonmail.com", + "file": "secrets.md", + "date": "2019-10-25T13:01:27-04:00", + "tags": "key, AWS", + "severity": "" + }, + { + "line": "\nHere's an AWS secret: AKIALALEMEL33243OLIAE", + "offender": "AKIALALEMEL33243OLIA", + "commit": "b10b3e2cb320a8c211fda94c4567299d37de7776", + "repo": "test_repo_4", + "rule": "AWS Manager ID", + "commitMessage": "adding aws key\n", + "author": "zach rice", + "email": "zricer@protonmail.com", + "file": "secrets.md", + "date": "2019-10-25T12:58:39-04:00", + "tags": "key, AWS", + "severity": "" } ] diff --git a/test_data/test_local_repo_four_alt_config_entropy.json b/test_data/test_local_repo_four_alt_config_entropy.json new file mode 100644 index 00000000..aee3ef35 --- /dev/null +++ b/test_data/test_local_repo_four_alt_config_entropy.json @@ -0,0 +1,30 @@ +[ + { + "line": " Just moments after the Cessna's inquiry, a Twin Beech piped up on frequency, in a rather superior tone, asking for his ground speed. \"I have you at one hundred and twenty-five knots of ground spe", + "offender": "Entropy range [{P1:4.5 P2:4.7}]", + "commit": "d8ac0b73aeeb45843319cdc5ce506516eb49bf7a", + "repo": "test_repo_4", + "rule": "entropy", + "commitMessage": "removing secret.pem\n", + "author": "zach rice", + "email": "zricer@protonmail.com", + "file": "secret.pem", + "date": "2019-10-25T13:08:39-04:00", + "tags": "entropy", + "severity": "" + }, + { + "line": " Just moments after the Cessna's inquiry, a Twin Beech piped up on frequency, in a rather superior tone, asking for his ground speed. \"I have you at one hundred and twenty-five knots of ground spe", + "offender": "Entropy range [{P1:4.5 P2:4.7}]", + "commit": "996865bb912f3bc45898a370a13aadb315014b55", + "repo": "test_repo_4", + "rule": "entropy", + "commitMessage": "committing pem\n", + "author": "zach rice", + "email": "zricer@protonmail.com", + "file": "secret.pem", + "date": "2019-10-25T13:07:41-04:00", + "tags": "entropy", + "severity": "" + } +] diff --git a/test_data/test_repos/test_repo_4/dotGit/COMMIT_EDITMSG b/test_data/test_repos/test_repo_4/dotGit/COMMIT_EDITMSG new file mode 100644 index 00000000..0f22e864 --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/COMMIT_EDITMSG @@ -0,0 +1 @@ +gitleaks toml diff --git a/test_data/test_repos/test_repo_4/dotGit/HEAD b/test_data/test_repos/test_repo_4/dotGit/HEAD new file mode 100644 index 00000000..cb089cd8 --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/test_data/test_repos/test_repo_4/dotGit/config b/test_data/test_repos/test_repo_4/dotGit/config new file mode 100644 index 00000000..6c9406b7 --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/config @@ -0,0 +1,7 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = false + logallrefupdates = true + ignorecase = true + precomposeunicode = true diff --git a/test_data/test_repos/test_repo_4/dotGit/description b/test_data/test_repos/test_repo_4/dotGit/description new file mode 100644 index 00000000..498b267a --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/test_data/test_repos/test_repo_4/dotGit/index b/test_data/test_repos/test_repo_4/dotGit/index new file mode 100644 index 0000000000000000000000000000000000000000..94eec663c924e68626094bb724aa5cea5e999d9e GIT binary patch literal 305 zcmZ?q402{*U|<4b=GYUGYU^H$Af?Cp9sK5`X`ADym|TY#i_|fsU^jFxhYWdmj5y> zouMqdX2GumpO literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/info/exclude b/test_data/test_repos/test_repo_4/dotGit/info/exclude new file mode 100644 index 00000000..a5196d1b --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/test_data/test_repos/test_repo_4/dotGit/logs/HEAD b/test_data/test_repos/test_repo_4/dotGit/logs/HEAD new file mode 100644 index 00000000..99399d23 --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/logs/HEAD @@ -0,0 +1,18 @@ +0000000000000000000000000000000000000000 85699e429f33e75541530998a5b5d457a12e6285 zach rice 1572022632 -0400 commit (initial): init +85699e429f33e75541530998a5b5d457a12e6285 b10b3e2cb320a8c211fda94c4567299d37de7776 zach rice 1572022719 -0400 commit: adding aws key +b10b3e2cb320a8c211fda94c4567299d37de7776 51f6dcf6b89b93f4075ba92c400b075631a6cc93 zach rice 1572022773 -0400 commit: no secrets +51f6dcf6b89b93f4075ba92c400b075631a6cc93 17471a5fda722a9e423f1a0d3f0d267ea009d41c zach rice 1572022887 -0400 commit: wait this is actually adding an aws secret +17471a5fda722a9e423f1a0d3f0d267ea009d41c 996865bb912f3bc45898a370a13aadb315014b55 zach rice 1572023261 -0400 commit: committing pem +996865bb912f3bc45898a370a13aadb315014b55 d8ac0b73aeeb45843319cdc5ce506516eb49bf7a zach rice 1572023319 -0400 commit: removing secret.pem +d8ac0b73aeeb45843319cdc5ce506516eb49bf7a b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba zach rice 1572023528 -0400 commit: adding another one +b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba f61cd8587b7ac1d75a89a0c9af870a2f24c60263 zach rice 1572023552 -0400 commit: rm secrets again +f61cd8587b7ac1d75a89a0c9af870a2f24c60263 f61cd8587b7ac1d75a89a0c9af870a2f24c60263 zach rice 1572024822 -0400 checkout: moving from master to dev +f61cd8587b7ac1d75a89a0c9af870a2f24c60263 deea550dd6c7acaf0e59432600593533984a2125 zach rice 1572024903 -0400 commit: dev branch +deea550dd6c7acaf0e59432600593533984a2125 64cfcee9aad1c84581631636bfc54f2050718d1a zach rice 1572024982 -0400 commit: rm secrets +64cfcee9aad1c84581631636bfc54f2050718d1a f61cd8587b7ac1d75a89a0c9af870a2f24c60263 zach rice 1572024992 -0400 checkout: moving from dev to master +f61cd8587b7ac1d75a89a0c9af870a2f24c60263 84ac4e80d4dbf2c968b64e9d4005f5079795bb81 zach rice 1572026048 -0400 commit: more secrets +84ac4e80d4dbf2c968b64e9d4005f5079795bb81 cd5eb8bef855f73c46b97b4c088badffdc40ebe9 zach rice 1572026066 -0400 commit: rm secrets +cd5eb8bef855f73c46b97b4c088badffdc40ebe9 828595723b76e4a35b5253d9f2ccb4f897f1845a zach rice 1573429084 -0500 commit: adding repo config +828595723b76e4a35b5253d9f2ccb4f897f1845a ce835da266b3f8c34e4b7f398693ed068f67cb30 zach rice 1573431270 -0500 commit: epstein didnt kill himself +ce835da266b3f8c34e4b7f398693ed068f67cb30 5accbc40c35906d99f073881fb8746c314f9d59f zach rice 1573431335 -0500 commit: removing a really important link +5accbc40c35906d99f073881fb8746c314f9d59f 7b2eba252004b7c867413def2a0984d545daab8b zach rice 1573431386 -0500 commit: gitleaks toml diff --git a/test_data/test_repos/test_repo_4/dotGit/logs/refs/heads/dev b/test_data/test_repos/test_repo_4/dotGit/logs/refs/heads/dev new file mode 100644 index 00000000..b6e04136 --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/logs/refs/heads/dev @@ -0,0 +1,3 @@ +0000000000000000000000000000000000000000 f61cd8587b7ac1d75a89a0c9af870a2f24c60263 zach rice 1572024822 -0400 branch: Created from HEAD +f61cd8587b7ac1d75a89a0c9af870a2f24c60263 deea550dd6c7acaf0e59432600593533984a2125 zach rice 1572024903 -0400 commit: dev branch +deea550dd6c7acaf0e59432600593533984a2125 64cfcee9aad1c84581631636bfc54f2050718d1a zach rice 1572024982 -0400 commit: rm secrets diff --git a/test_data/test_repos/test_repo_4/dotGit/logs/refs/heads/master b/test_data/test_repos/test_repo_4/dotGit/logs/refs/heads/master new file mode 100644 index 00000000..6daf2b8c --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/logs/refs/heads/master @@ -0,0 +1,14 @@ +0000000000000000000000000000000000000000 85699e429f33e75541530998a5b5d457a12e6285 zach rice 1572022632 -0400 commit (initial): init +85699e429f33e75541530998a5b5d457a12e6285 b10b3e2cb320a8c211fda94c4567299d37de7776 zach rice 1572022719 -0400 commit: adding aws key +b10b3e2cb320a8c211fda94c4567299d37de7776 51f6dcf6b89b93f4075ba92c400b075631a6cc93 zach rice 1572022773 -0400 commit: no secrets +51f6dcf6b89b93f4075ba92c400b075631a6cc93 17471a5fda722a9e423f1a0d3f0d267ea009d41c zach rice 1572022887 -0400 commit: wait this is actually adding an aws secret +17471a5fda722a9e423f1a0d3f0d267ea009d41c 996865bb912f3bc45898a370a13aadb315014b55 zach rice 1572023261 -0400 commit: committing pem +996865bb912f3bc45898a370a13aadb315014b55 d8ac0b73aeeb45843319cdc5ce506516eb49bf7a zach rice 1572023319 -0400 commit: removing secret.pem +d8ac0b73aeeb45843319cdc5ce506516eb49bf7a b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba zach rice 1572023528 -0400 commit: adding another one +b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba f61cd8587b7ac1d75a89a0c9af870a2f24c60263 zach rice 1572023552 -0400 commit: rm secrets again +f61cd8587b7ac1d75a89a0c9af870a2f24c60263 84ac4e80d4dbf2c968b64e9d4005f5079795bb81 zach rice 1572026048 -0400 commit: more secrets +84ac4e80d4dbf2c968b64e9d4005f5079795bb81 cd5eb8bef855f73c46b97b4c088badffdc40ebe9 zach rice 1572026066 -0400 commit: rm secrets +cd5eb8bef855f73c46b97b4c088badffdc40ebe9 828595723b76e4a35b5253d9f2ccb4f897f1845a zach rice 1573429084 -0500 commit: adding repo config +828595723b76e4a35b5253d9f2ccb4f897f1845a ce835da266b3f8c34e4b7f398693ed068f67cb30 zach rice 1573431270 -0500 commit: epstein didnt kill himself +ce835da266b3f8c34e4b7f398693ed068f67cb30 5accbc40c35906d99f073881fb8746c314f9d59f zach rice 1573431335 -0500 commit: removing a really important link +5accbc40c35906d99f073881fb8746c314f9d59f 7b2eba252004b7c867413def2a0984d545daab8b zach rice 1573431386 -0500 commit: gitleaks toml diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/0b/c3a0c9536cc7273b74f48edcc6adead16333f7 b/test_data/test_repos/test_repo_4/dotGit/objects/0b/c3a0c9536cc7273b74f48edcc6adead16333f7 new file mode 100644 index 0000000000000000000000000000000000000000..66cbf0901d664638bb2f6f321a850d8dd1d31705 GIT binary patch literal 55 zcmV-70LcG%0V^p=O;s?qU@$Z=Ff%bxC{9f-N-ZhY%S~ahy|pnd7G-oh0FfcPQQOL`WFHTJ^N-ZhY%S~ZWu?>!Gc{~00Azsdt zmkxaq52$~V2vrDCrB{%e%OL9Taq=G3EmO`um=sx6xt@j5g8dDODzI706#d?0B~AEu VLjF;})9u!6*GyJ60sxb_GE!YvGHw6> literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/15/40f193bc25b494cde092597a79af04013807ec b/test_data/test_repos/test_repo_4/dotGit/objects/15/40f193bc25b494cde092597a79af04013807ec new file mode 100644 index 0000000000000000000000000000000000000000..5ad713e1584537fe3054161ef01357ec82e4cd80 GIT binary patch literal 3391 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 literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/18/51114bbb7484cccd61f18c71649699d73ede6c b/test_data/test_repos/test_repo_4/dotGit/objects/18/51114bbb7484cccd61f18c71649699d73ede6c new file mode 100644 index 0000000000000000000000000000000000000000..46ccb0d0968ed4526866a104fa4491b22f33e5cb GIT binary patch literal 121 zcmV-<0EYi~0V^p=O;s>7GGH(?FfcPQQAp1$$w^JjF4il_&&^>-nR!J-r1t06oPB52 zP8IT4K52GPfhx?)k1tM5E=nya*2_&{P_Ye;ZFxKW_aR=+la~&C5f7+;k_c6Zq$>SL bbb`kdE$yp;YDuSZF6}?=Q{e;v6#O!n_Xaes literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/18/5715c36f82be353f34845811270a4d0ae4b24e b/test_data/test_repos/test_repo_4/dotGit/objects/18/5715c36f82be353f34845811270a4d0ae4b24e new file mode 100644 index 0000000000000000000000000000000000000000..03bf1d87b2affd12fe23a57dbaf1c2ca77fec974 GIT binary patch literal 83 zcmV-Z0IdIb0V^p=O;s?rWH2-^Ff%bx$jgr}PE9UKEh*N^O<_>64UTPjJN@?|Ue1%3 p4t)_1sDF|ORfwc&$5M@gPa7s@&f}eNx-+@`L>64UTPjJN@?|Ue1%3 p4t)_1sDF|ORfweO;QrM~8tP2Bd-Znt>6WfIs{Aze5CCM?A?I;%CGr3O literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/24/3d535d84ed97fbc20d09c9d2c2f417507fe461 b/test_data/test_repos/test_repo_4/dotGit/objects/24/3d535d84ed97fbc20d09c9d2c2f417507fe461 new file mode 100644 index 0000000000000000000000000000000000000000..838bf1e1886164d1f5dacceb63dd67ee51647b8c GIT binary patch literal 59 zcmV-B0L1@z0ZYosPf{>3W>8jERtU++ELKR%%t=*9$xkg-$jdKLNY2kINzBYsNX)BL RC{9f-N-Zho0sxw35Zm6}7+U}U literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/29/b514fe50d6a7b2aa18cd581b46a85b84c2d4b3 b/test_data/test_repos/test_repo_4/dotGit/objects/29/b514fe50d6a7b2aa18cd581b46a85b84c2d4b3 new file mode 100644 index 0000000000000000000000000000000000000000..14a0321b10d44c3f8e159eeadc8a9b0fa3d437da GIT binary patch literal 425 zcmV;a0apHa0ezBBkJB&^#X09w%&G?@lx-!%p`aD3YPswQv@8dXZZln*Iy094$TFXv znKoTQ4&)Fyjy?0MuIug|vSs?X z{R|dc5AFz!3*;6M9O*hjsIs4-I`1J_u3)50HZjdEzq>wC8*jS1-R~0di!&qBAf*ds zjPIA*17o5Lp7{jcokW*bh0HMGtoEYV)M<7gTO($wyx~#%FZ;0VA)@iV-Oq0A_KAJT z=-cwV5;z!w7rrWov0az9j$W?oR_S!M$| z*U_j@H;Vk%5X^=AO@O%huNYHNgLc!|oJ0Dw+0jRIQ=U8w@Oy77|LafG# z1=Ta0nO$7S079MP!>B%gm6RpiLH?SQaZrL!6QZ|*iw2FZ2?3{MDPe&)*^)7rBuSU} TOi^E|(d_VP-F1HeA@&`aLB-hi literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/3d/dab16668fe919638b76dd48c96bedf0e2276ca b/test_data/test_repos/test_repo_4/dotGit/objects/3d/dab16668fe919638b76dd48c96bedf0e2276ca new file mode 100644 index 0000000000000000000000000000000000000000..94c73dafaadedfa175d39bd014335720be7c5c9f GIT binary patch literal 94 zcmV-k0HObQ0ZYosPg1ZjW>8jERtU++ELKR%%t=*9&d)1J%*-oRD9+DKRVYqPE=nya zR^a0DNG(cLFIGs*Q*aCqhKgG$IC^_J`Z)Ty`nviU8ylGz`}=r0x^i&=03ZAtQ+cr{ Ag8%>k literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/4a/3ffb6df0f421fdf325afae19dc749f8f6b1bfb b/test_data/test_repos/test_repo_4/dotGit/objects/4a/3ffb6df0f421fdf325afae19dc749f8f6b1bfb new file mode 100644 index 0000000000000000000000000000000000000000..6efcf07daa19a2c267f297b45ea4fb0e712af754 GIT binary patch literal 125 zcmV-@0D}K`0Y%EO3c@fD08r&@1eE%^G;sH6^ba_JcH`iJ3;yB*5n8&2!Fl~} flRw}5{F{Am31jB>l8;E72z$#&omT1tM*StNrGY*Z literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/4b/a23978297d33c8d7744f059cc5bca2385e262d b/test_data/test_repos/test_repo_4/dotGit/objects/4b/a23978297d33c8d7744f059cc5bca2385e262d new file mode 100644 index 0000000000000000000000000000000000000000..15e9e92765ea3ff2d56d095e0f193fd15271f18b GIT binary patch literal 83 zcmV-Z0IdIb0V^p=O;s?rWH2-^Ff%bx$jgr}PE9UKEh*N^O<_>64UTPjJN@?|Ue1%3 p4t)_1sDF|ORfwdj`6##8e{Vxi5moU;Yfq%7GGH(?FfcPQQAp1$$w^JjF4il_&&^?Y-+$AeODaFW(sPY> z*yjYlBQKpELlx%b#}}t27p0aI>*b~}sMrR_w!EGG`w%bZ$xDa6hzHa^NrWmyQk8xr bI>Fzïvº_öWì¶/Ónãå¾ýfGî \ No newline at end of file diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/5a/ccbc40c35906d99f073881fb8746c314f9d59f b/test_data/test_repos/test_repo_4/dotGit/objects/5a/ccbc40c35906d99f073881fb8746c314f9d59f new file mode 100644 index 00000000..7ab6cbed --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/objects/5a/ccbc40c35906d99f073881fb8746c314f9d59f @@ -0,0 +1 @@ +x�ŽQj!÷ÛSô²ØÛÚ*„�«hOÏ®ì8bÙÓgr…|<êAIo­N¸¹p™C0zDt¥”࢑…qÅ(Ù%Ni ¤‹²˜#Ý'ˆFòK¾1Z£�SWÂJ)r:EËqå …¬É_óѼ²<`TQxýa|£Ï¾·\·«ôöè9B"oÖ[kÎõLœú¯³ÚúwÝï�ahÞ¶¨íècæ3~«ûÓüvêPK \ No newline at end of file diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/5d/5c8724e8787e69cebcc9ea4bceb47d9941656e b/test_data/test_repos/test_repo_4/dotGit/objects/5d/5c8724e8787e69cebcc9ea4bceb47d9941656e new file mode 100644 index 0000000000000000000000000000000000000000..f1090fb35cd847048797eabe87866c168e898d94 GIT binary patch literal 83 zcmV-Z0IdIb0V^p=O;s?rWH2-^Ff%bx$jgr}PE9UKEh*N^O<_>64UTPjJN@?|Ue1%3 p4t)_1sDF|ORfwdjXJbc`L)Thvt^J|dA3q&+@B6Ir6##I|BXT`bBTWDR literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/5d/630e1163864c8b5616199962390a36a8a53b69 b/test_data/test_repos/test_repo_4/dotGit/objects/5d/630e1163864c8b5616199962390a36a8a53b69 new file mode 100644 index 0000000000000000000000000000000000000000..d93d42c3b9f9046d0473a91d5e3d49f4d6b247ac GIT binary patch literal 53 zcmbPBjN{}9oiLBnXFNka&YjoxJaa}nOyk^n-%t%dUp+5f&9Dbd J4ECIS3jsy?6iEO8 literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/5e/a982157d053ce35a9b79394973c7c8901f317c b/test_data/test_repos/test_repo_4/dotGit/objects/5e/a982157d053ce35a9b79394973c7c8901f317c new file mode 100644 index 0000000000000000000000000000000000000000..1fe46e5225a209e5e0bce46298b1fe7cdeef9c93 GIT binary patch literal 83 zcmV-Z0IdIb0V^p=O;s?rWH2-^Ff%bx$jgr}PE9UKEh*N^O<_>64UTPjJN@?|Ue1%3 p4t)_1sDF|ORfwc&nWEpDtfUG5PRKtBc)H!X?V8ETMgVrLBY08lBv}9e literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/64/99d414147df9f56cbecd26ca710c39e4834024 b/test_data/test_repos/test_repo_4/dotGit/objects/64/99d414147df9f56cbecd26ca710c39e4834024 new file mode 100644 index 0000000000000000000000000000000000000000..5b40db650875f73d9d9a76dfb34befe357cfd6f6 GIT binary patch literal 97 zcmV-n0G|JN0ZYosPf{>6v|xyiE-KAQEsl-l;!H^`PAe7TA)RirNn_!x{Bf`Bv8l2aX*>9=?Z-v92{IKIj;?f z?sB1E~A3xORyOvhAtn2HRN`8Qso{)Hm1XpB4ciMBY*aqJ4|u_ literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/67/c45b6048e42a2bd5512662ca6cd2bfc74c7842 b/test_data/test_repos/test_repo_4/dotGit/objects/67/c45b6048e42a2bd5512662ca6cd2bfc74c7842 new file mode 100644 index 00000000..fa18daab --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/objects/67/c45b6048e42a2bd5512662ca6cd2bfc74c7842 @@ -0,0 +1,5 @@ +x}’1OÃ0…™ó+u@B¡�ŠT�ª²tB*00ºÍµ6qÎQl+2¿ž»$-!HdˆǾ{ï»··nËûÅÕl6ƒ7m<�E88 +Ê�ï*�‡ƒ‡,ËV› =,AcÊÁ!¹!Õ†dÝ@Ýò~€ÖX ^»— ªñ£Ë·ç‡kãu¶ZÅŸ�ª\:RÀf1Ý.z +`�+Áš’uIU*Õž:�­ØLËoØJÿi§shPY›žF·Ö{ïl hÓô¼8(‚“;+‡*�—w†Nçõô¢VZå ¶@4õÎŽ‘(‰).;îo�Í!¡ŸÃ+bÎò‘àãå½g?ëÀ óŽJô‚þâÿ7ã¡ +9S(LÁdKâimwùì�ì'¬s F­Ïd®•¡¦bù—Œ…ü$€Ýü+Fµ(Aû„V–'½ŠŽG¯�áÖí 6âá3úÀÁ­ù¯ò ¡³ìß0 +*$–ª®qH�Ðc@ƒdaôœbŽÆãé¸$®œgÙ7×D \ No newline at end of file diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/68/b020592645020c9afb7462e17842a1cc723071 b/test_data/test_repos/test_repo_4/dotGit/objects/68/b020592645020c9afb7462e17842a1cc723071 new file mode 100644 index 0000000000000000000000000000000000000000..78d82a50de7c6818a97596fc6b5b64081cfa0043 GIT binary patch literal 83 zcmV-Z0IdIb0V^p=O;s?rWH2-^Ff%bx$jgr}PE9UKEh*N^O<_>64UTPjJN@?|Ue1%3 p4t)_1sDF|ORfwd@%l>!nhcAkMKdY`^CwZr2et)*~ZvcNZBlA)SBh&x@ literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/69/b7669aa8e125ef0e14abce31911e84dd09e25e b/test_data/test_repos/test_repo_4/dotGit/objects/69/b7669aa8e125ef0e14abce31911e84dd09e25e new file mode 100644 index 0000000000000000000000000000000000000000..d944898203cf71b47a5c469a2298f55a79daad42 GIT binary patch literal 83 zcmV-Z0IdIb0V^p=O;s?rWH2-^Ff%bx$jgr}PE9UKEh*N^O<_>64UTPjJN@?|Ue1%3 p4t)_1sDF|ORfwd@_SVLopszHg4(Ffmq~7v>-+8rx>#yFa(pwFgP!0 zT#ggPtoYOC+F)myp)Hc&y8qDbTdTdk3NPzLYPo@-0Ua6)9?qJyR);+nd-^L@kEO4P OpKs{3tm+F$JV6G-6OzR#phf$ShV!%gjktNY2kINzBYERw&NTO;spPO)g3; zDOTX(;>s#5E>XzNOi9ViOIOH9ElO1YYDvt?F9EWl>a4gN!-HXL1tmvsPe&g|A6H*j VA7f)96JviLPe)fJE&x-+CJx*YEf@d* literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/82/8595723b76e4a35b5253d9f2ccb4f897f1845a b/test_data/test_repos/test_repo_4/dotGit/objects/82/8595723b76e4a35b5253d9f2ccb4f897f1845a new file mode 100644 index 0000000000000000000000000000000000000000..54afca4e1c36704d2e41ce19aa31af2d258c19a6 GIT binary patch literal 163 zcmV;U09^lg0iBLXY6CG40Daag`U45=(bfVJ@)h+WTaXzILcaL*alVjKK|w*u*!R9* z^Zv4?85mLtT+nCDDWssxq+861q*U~&P}Wq%+*zj`3q+$au{DaZWiKId$s7cUxN2)E z0gbJ=`dp7O;Z@}Uvx~v)^@sU=&auX^*Z%VЬ÷“Ör™v�!âÛ×ýb·¿°+µl¦Íúæ>šŸG– \ No newline at end of file diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/85/699e429f33e75541530998a5b5d457a12e6285 b/test_data/test_repos/test_repo_4/dotGit/objects/85/699e429f33e75541530998a5b5d457a12e6285 new file mode 100644 index 0000000000000000000000000000000000000000..312b2c1d5394f35ecc64f70258f0203fdac26e84 GIT binary patch literal 124 zcmV-?0E7Q{0iBIO3d0}}0DJZo`+=5qjZvYLer2<6h)`n@d&%pYexavS>ZM3~|dEKPd e2Us5niDpM|#R<`z_FNAAD>h{>!+ZgTA~=5#yE$?I literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/8c/b18882408aad0b2abf556bf1f2c5478ef328f5 b/test_data/test_repos/test_repo_4/dotGit/objects/8c/b18882408aad0b2abf556bf1f2c5478ef328f5 new file mode 100644 index 0000000000000000000000000000000000000000..d87f932750dc7f93506d0eb4a1c4f26866240a74 GIT binary patch literal 68 zcmV-K0K5Nq0ZYosPf{>7W>8jERtU++ELKR%%t=*9&d)1J%*-oRD9+DKRVYqPE=nya aR^Z}FOb3eUDCFfUmBFU z?4iZ(z&VF$Nd;nB2}0iLoVEfbKM4wj7u5nyz!8`pdTq5e7h@5H n#H;O3hW)3bIp56mt(B4}e5CgrJAo8XC`kfa_WOSTR;Vcc+zLL8 literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/99/6865bb912f3bc45898a370a13aadb315014b55 b/test_data/test_repos/test_repo_4/dotGit/objects/99/6865bb912f3bc45898a370a13aadb315014b55 new file mode 100644 index 00000000..c88cfdb9 --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/objects/99/6865bb912f3bc45898a370a13aadb315014b55 @@ -0,0 +1,3 @@ +x�ŽK +Â0@]÷se2ùŒ¯2M&¶`š⦧·.¼€«¼XKY:�§ÞT5¦ *‚‡ì£¤+2‹úI¯ŽÐyvh§‡Mš® ;6âs&’QÙl“͘(° +☜‰ƒ¼û\ìghKT¸í_´ÇÖj¯k‘åu‰µÜÁx&$KÁÀâpØc±ë_ñ¯^Ö'lZ†Ÿ>J$ \ No newline at end of file diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/a6/214eec6a6290fec81fe250e5b73b86d634a981 b/test_data/test_repos/test_repo_4/dotGit/objects/a6/214eec6a6290fec81fe250e5b73b86d634a981 new file mode 100644 index 0000000000000000000000000000000000000000..2511ae02c3a7bf4c0c1cae10c3216b710b085c72 GIT binary patch literal 67 zcmV-J0KETr0ZYosPf{>7WKdRCRtU++ELKR%%t=*9&d)1J%*-oRD9+DKRVYqPE=nya ZR^a0D%U8(FFG^L&POU8F0st#)6CKCE976yA literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/b1/07a0d7a337f04413efa73d337461f548aef336 b/test_data/test_repos/test_repo_4/dotGit/objects/b1/07a0d7a337f04413efa73d337461f548aef336 new file mode 100644 index 0000000000000000000000000000000000000000..f3a3ba397cb7bcdf3a412d6dfc9fb894d0078301 GIT binary patch literal 83 zcmV-Z0IdIb0V^p=O;s?rWH2-^Ff%bx$jgr}PE9UKEh*N^O<_>64UTPjJN@?|Ue1%3 p4t)_1sDF|ORfwdj$-7J2t^fQYmj~1KhU_rq*b(=o0|06ZB8_FFBvb$Z literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/b1/0b3e2cb320a8c211fda94c4567299d37de7776 b/test_data/test_repos/test_repo_4/dotGit/objects/b1/0b3e2cb320a8c211fda94c4567299d37de7776 new file mode 100644 index 0000000000000000000000000000000000000000..ac93c76f113240b82f367789ed77ddde86fef0fd GIT binary patch literal 164 zcmV;V09*ff0iBLPY6CG00CV;$^nn&zvg|d4kgsTEZL>7H4vs@;Uf=W!Jq-*DjJ9oC z2OyTi=w{$&CGlFAl4{0GbB;@#tg0rdCN(4?TC%%Iw|&6GsT7M?79z{cF);a3CgGWD zo3eSrkOqXQx2Ds9`75uy%aHgo!zD`Zvhs45<{Qt|+8 z%w=?DAgK*vltGg>7?aU{@eY#>Zet%}wAv$UB@XOd2c&=`w+~#t(3?SJGnTu zOuEL+qrlJDTZa>Ahn|Vye*U6AkKRVB1@rqxtvo7GGH(?FfcPQQAp1$$w^JjF4il_&&^>-nR!J-r1t06oPB52 zP8IT4K52GPfhx?)k1tM5E=nya*2_&{P_Ye;ZFxKW_aR=+la~&C5f7+;k_c6Zq)KzE b$iIMV%Qvl(I2$4Dwj#Ra(3Q;q8>lmO1$Q-+ literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/b8/a52870f2b093699e0d98cb896387c87e0c98a6 b/test_data/test_repos/test_repo_4/dotGit/objects/b8/a52870f2b093699e0d98cb896387c87e0c98a6 new file mode 100644 index 0000000000000000000000000000000000000000..ff582f60d9d67a6b5395c3aa58dd494fc1e81ff1 GIT binary patch literal 66 zcmV-I0KNZs0ZYosPf{>7U{F?8RtU++ELKR%%t=*9&d)1J%*-oRD9+DKRVYqPE=nya YR^Z|)O3lqL%gjqx$SmOk032`=6r7A3DgXcg literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/c0/23aab082c73abd327675ad485fe78bb427ae21 b/test_data/test_repos/test_repo_4/dotGit/objects/c0/23aab082c73abd327675ad485fe78bb427ae21 new file mode 100644 index 0000000000000000000000000000000000000000..5e07a20409f13dd488cf7491b257265742ae009f GIT binary patch literal 84 zcmV-a0IUCa0V^p=O;s?rWH2-^Ff%bx$jgr}PE9UKEh*N^O<_>64UTPjJN@?|Ue1%3 q4t)_1sDF|ORfwc&+Q9>hleNB2dw+R~&cPe9RbTqn+5rHDd?aRS4q2I{G;Jxca*K7#kaz82kHpI=U)x0RTC68;+D+ BC@ug1 literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/cd/5eb8bef855f73c46b97b4c088badffdc40ebe9 b/test_data/test_repos/test_repo_4/dotGit/objects/cd/5eb8bef855f73c46b97b4c088badffdc40ebe9 new file mode 100644 index 00000000..1533a3b4 --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/objects/cd/5eb8bef855f73c46b97b4c088badffdc40ebe9 @@ -0,0 +1,3 @@ +x�Ž] +Â0„}Î)öJÜæD¼J²ÙÒ‚iÊ6¾ôôÆ+ø40ó1Ôj]; ÚKf09á}ÀèË4Q(Þ3k‰l¦Á‚etXÔž„·Á$2t1%ÏHÑ…ì Çb´¶³Õ>úhsw•>}ig¢d%†Çù yíÒzÛjZß7jõ wëQ£ÓÎÁU�í¸Øù¯±’ +“p?Ô íG| \ No newline at end of file diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/ce/835da266b3f8c34e4b7f398693ed068f67cb30 b/test_data/test_repos/test_repo_4/dotGit/objects/ce/835da266b3f8c34e4b7f398693ed068f67cb30 new file mode 100644 index 00000000..62c73ed7 --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/objects/ce/835da266b3f8c34e4b7f398693ed068f67cb30 @@ -0,0 +1 @@ +x�ŽAjÄ0 EgíSè-ŽlE ¥W‘™˜‰ãป9}Ó+tõà?>¼Ôj-ÐO�ÑU!z¶ÙòŠ"#96D ”$Î3#-Ñ«MÂæ”®Ç€p»…]äY½8Š„äÖ%cJÑç°pž‚'1ò3¶Öá-iƒ^’Âóý‡þ}ö6ÚQ¥ìŸ©Õ/˜ˆ�w²…KÖš{½‡þëlô¼†–Ö²Þ¹¯²ï°•zéžÍ/FÛMq \ No newline at end of file diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/d8/ac0b73aeeb45843319cdc5ce506516eb49bf7a b/test_data/test_repos/test_repo_4/dotGit/objects/d8/ac0b73aeeb45843319cdc5ce506516eb49bf7a new file mode 100644 index 00000000..f195924b --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/objects/d8/ac0b73aeeb45843319cdc5ce506516eb49bf7a @@ -0,0 +1 @@ +x�ŽAj1 E»ö)t�Û²b BÈUdEIêñà¸]äô™^!«ïkom™1}ÍadÂ%ÊWO¨†$\3#'ΨY ûpÃ�Õm2l�À|,Gª•C¼aÕD…‹`öPäZ1�©9ù��>à%ú€±¨Áéõ?ã²�>ûÚdù9hogØÛÑGÄÀðí“÷n§ûÅiÉnXëËz‡§é°yج¹7¥&J/ \ No newline at end of file diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/de/ea550dd6c7acaf0e59432600593533984a2125 b/test_data/test_repos/test_repo_4/dotGit/objects/de/ea550dd6c7acaf0e59432600593533984a2125 new file mode 100644 index 0000000000000000000000000000000000000000..7ed4768c5f0684bc184dc370af4797ebe642bbd5 GIT binary patch literal 158 zcmV;P0Ac@l0iBLp3c@fDMg7hyW&_IPIVp&^mFXm*1=Exe{pjkgTkz|04jj1BYF!5y z<1eG<46{aJOvKhwLFcs1g~_H9UC_n5$hlY>)XqI`14_`6qK`Bai%#S@PK+{fiG*y5 zaT3r3tN1;Z*5P1Tps$kQe*C6C_ufX^DzC4bwE6(;$)Ir)TDYP^RHr>Jj{H}wQvSf) Md6Pwb0i<(BR=a*tOaK4? literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/e0/894b9037d76464dbb8d25768c9a036987d6ace b/test_data/test_repos/test_repo_4/dotGit/objects/e0/894b9037d76464dbb8d25768c9a036987d6ace new file mode 100644 index 0000000000000000000000000000000000000000..e8012361507a6bef2c7c0aa5978280534fbf95bc GIT binary patch literal 121 zcmV-<0EYi~0V^p=O;s>7GGH(?FfcPQQAp1$$w^JjF4il_&&^>-nR!J-r1t06oPB52 zP8IT4K52GPfhx?)k1tM5E=nya*2_&{P_Ye;ZFxKW_aR=+la~&C5f7+;k_c6Zq^kKS bx7dGgLr)P^@kMJ-r0KJ4-K-1%0-7+V0?IV! literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/e8/abc5d9c3ea7760bf20054e8dada3832f9a00a9 b/test_data/test_repos/test_repo_4/dotGit/objects/e8/abc5d9c3ea7760bf20054e8dada3832f9a00a9 new file mode 100644 index 0000000000000000000000000000000000000000..aaa3f442044293fba056e43ba7f5c6ce03677cbf GIT binary patch literal 54 zcmb)7U|?ckU~Cwu;peO8rK@@Ev~OaE?=xYayw5NBgeT9LnQ}69Thhu> KH3lnoJ{|z;z7p>M literal 0 HcmV?d00001 diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/ef/8fd94f0a1a6f503949ac4b56f3604ec4e942e3 b/test_data/test_repos/test_repo_4/dotGit/objects/ef/8fd94f0a1a6f503949ac4b56f3604ec4e942e3 new file mode 100644 index 0000000000000000000000000000000000000000..6de0925540e5eabb2472e1f36a01ac4eb15ccb99 GIT binary patch literal 99 zcmV-p0G$7L0ZYosPf{>6v|xyiE-KAQEsl-l;!H^`PARdì'ã8£ÂOŸkƒi†¶�ÀýøM{n­öº\Þ7ªåÆ«íཅ«vZ«Óž»ü«V`jÒwÀ.«úÜÃKÝ \ No newline at end of file diff --git a/test_data/test_repos/test_repo_4/dotGit/refs/heads/dev b/test_data/test_repos/test_repo_4/dotGit/refs/heads/dev new file mode 100644 index 00000000..986aea9e --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/refs/heads/dev @@ -0,0 +1 @@ +64cfcee9aad1c84581631636bfc54f2050718d1a diff --git a/test_data/test_repos/test_repo_4/dotGit/refs/heads/master b/test_data/test_repos/test_repo_4/dotGit/refs/heads/master new file mode 100644 index 00000000..b0575580 --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/refs/heads/master @@ -0,0 +1 @@ +7b2eba252004b7c867413def2a0984d545daab8b diff --git a/test_data/test_repos/test_repo_4/gitleaks.toml b/test_data/test_repos/test_repo_4/gitleaks.toml new file mode 100644 index 00000000..d556ac04 --- /dev/null +++ b/test_data/test_repos/test_repo_4/gitleaks.toml @@ -0,0 +1,6 @@ +[[rules]] + description = "entropy" + entropies = [ + "4.5-4.7", + ] + tags = ["entropy"] diff --git a/test_data/test_repos/test_repo_4/no_secrets.md b/test_data/test_repos/test_repo_4/no_secrets.md new file mode 100644 index 00000000..243d535d --- /dev/null +++ b/test_data/test_repos/test_repo_4/no_secrets.md @@ -0,0 +1 @@ +### This file does not contain any secrets diff --git a/test_data/test_repos/test_repo_4/secrets.md b/test_data/test_repos/test_repo_4/secrets.md new file mode 100644 index 00000000..67c45b60 --- /dev/null +++ b/test_data/test_repos/test_repo_4/secrets.md @@ -0,0 +1,21 @@ +### This file contains some secrets + + + hey, if you type in your pw, it will show as stars + ********* see! + hunter2 + doesnt look like stars to me + ******* + thats what I see + oh, really? + Absolutely + you can go hunter2 my hunter2-ing hunter2 + haha, does that look funny to you? + lol, yes. See, when YOU type hunter2, it shows to us as ******* + thats neat, I didnt know IRC did that + yep, no matter how many times you type hunter2, it will show to us as ******* + awesome! + wait, how do you know my pw? + er, I just copy pasted YOUR ******'s and it appears to YOU as hunter2 cause its your pw + oh, ok. +