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 00000000..94eec663 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/index differ 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 00000000..66cbf090 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/0b/c3a0c9536cc7273b74f48edcc6adead16333f7 differ diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/0e/cd6aeaa0b76f5cad8077ae5be8420457403bfc b/test_data/test_repos/test_repo_4/dotGit/objects/0e/cd6aeaa0b76f5cad8077ae5be8420457403bfc new file mode 100644 index 00000000..df43f260 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/0e/cd6aeaa0b76f5cad8077ae5be8420457403bfc differ 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 00000000..5ad713e1 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/15/40f193bc25b494cde092597a79af04013807ec differ diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/17/471a5fda722a9e423f1a0d3f0d267ea009d41c b/test_data/test_repos/test_repo_4/dotGit/objects/17/471a5fda722a9e423f1a0d3f0d267ea009d41c new file mode 100644 index 00000000..915763a2 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/17/471a5fda722a9e423f1a0d3f0d267ea009d41c differ 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 00000000..46ccb0d0 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/18/51114bbb7484cccd61f18c71649699d73ede6c differ 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 00000000..03bf1d87 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/18/5715c36f82be353f34845811270a4d0ae4b24e differ diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/20/ef26716304570775cb395f37cb2d626bbd0a82 b/test_data/test_repos/test_repo_4/dotGit/objects/20/ef26716304570775cb395f37cb2d626bbd0a82 new file mode 100644 index 00000000..b211c238 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/20/ef26716304570775cb395f37cb2d626bbd0a82 differ 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 00000000..838bf1e1 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/24/3d535d84ed97fbc20d09c9d2c2f417507fe461 differ 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 00000000..14a0321b Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/29/b514fe50d6a7b2aa18cd581b46a85b84c2d4b3 differ 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 00000000..94c73daf Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/3d/dab16668fe919638b76dd48c96bedf0e2276ca differ 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 00000000..6efcf07d Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/4a/3ffb6df0f421fdf325afae19dc749f8f6b1bfb differ 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 00000000..15e9e927 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/4b/a23978297d33c8d7744f059cc5bca2385e262d differ diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/4b/c47c2d3aaa25385e3354ea34136456c2260a12 b/test_data/test_repos/test_repo_4/dotGit/objects/4b/c47c2d3aaa25385e3354ea34136456c2260a12 new file mode 100644 index 00000000..d6009118 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/4b/c47c2d3aaa25385e3354ea34136456c2260a12 differ diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/51/f6dcf6b89b93f4075ba92c400b075631a6cc93 b/test_data/test_repos/test_repo_4/dotGit/objects/51/f6dcf6b89b93f4075ba92c400b075631a6cc93 new file mode 100644 index 00000000..4258020f --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/objects/51/f6dcf6b89b93f4075ba92c400b075631a6cc93 @@ -0,0 +1,3 @@ +x�ŽA +1 E]÷¹€Ò¤�f +"^%M#8S©uãé¯àêÃ{<øÚÖu@4F7ƒ” §”EfCšìæ £µ€ÑæX«Ï¶ ÷”nÛ€‚¾#-�¼ÌJˆ·*9jœSÎ5p5fNNÞãÞ:|DïÐ58~Ó¯ÏÞFÛVY'mëpbòDÌŽ>zï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 00000000..f1090fb3 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/5d/5c8724e8787e69cebcc9ea4bceb47d9941656e differ 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 00000000..d93d42c3 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/5d/630e1163864c8b5616199962390a36a8a53b69 differ 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 00000000..1fe46e52 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/5e/a982157d053ce35a9b79394973c7c8901f317c differ 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 00000000..5b40db65 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/64/99d414147df9f56cbecd26ca710c39e4834024 differ diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/64/cfcee9aad1c84581631636bfc54f2050718d1a b/test_data/test_repos/test_repo_4/dotGit/objects/64/cfcee9aad1c84581631636bfc54f2050718d1a new file mode 100644 index 00000000..261fe7f6 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/64/cfcee9aad1c84581631636bfc54f2050718d1a differ 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 00000000..78d82a50 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/68/b020592645020c9afb7462e17842a1cc723071 differ 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 00000000..d9448982 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/69/b7669aa8e125ef0e14abce31911e84dd09e25e differ diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/7b/2eba252004b7c867413def2a0984d545daab8b b/test_data/test_repos/test_repo_4/dotGit/objects/7b/2eba252004b7c867413def2a0984d545daab8b new file mode 100644 index 00000000..1d321659 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/7b/2eba252004b7c867413def2a0984d545daab8b differ diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/82/4b8a2b468fcfa244e096bd54b83508b85ef488 b/test_data/test_repos/test_repo_4/dotGit/objects/82/4b8a2b468fcfa244e096bd54b83508b85ef488 new file mode 100644 index 00000000..24e40b2e Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/82/4b8a2b468fcfa244e096bd54b83508b85ef488 differ 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 00000000..54afca4e Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/82/8595723b76e4a35b5253d9f2ccb4f897f1845a differ diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/83/c50b16ff4b3149142517a2adc8662f04b5b323 b/test_data/test_repos/test_repo_4/dotGit/objects/83/c50b16ff4b3149142517a2adc8662f04b5b323 new file mode 100644 index 00000000..d5dd750a Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/83/c50b16ff4b3149142517a2adc8662f04b5b323 differ diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/84/ac4e80d4dbf2c968b64e9d4005f5079795bb81 b/test_data/test_repos/test_repo_4/dotGit/objects/84/ac4e80d4dbf2c968b64e9d4005f5079795bb81 new file mode 100644 index 00000000..3d207fd1 --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/objects/84/ac4e80d4dbf2c968b64e9d4005f5079795bb81 @@ -0,0 +1,3 @@ +x�ÎQ +Â0P¿sн€²Y“l +"^e»ÝÒ‚1’ÆOoõ~Í0ð`´–²v âCof�òˆ„q â^t�yä�È<ç@âU™ÎÈÞ=¥Ù£Ãœ¼N9fYÔO%òc™Qh¦  )��¼úR¼Eh«\Þßh·g«½>Ь÷“Ö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 00000000..312b2c1d Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/85/699e429f33e75541530998a5b5d457a12e6285 differ 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 00000000..d87f9327 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/8c/b18882408aad0b2abf556bf1f2c5478ef328f5 differ diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/96/c1c0a3632af796efd3942cc1d81d7af48ead3e b/test_data/test_repos/test_repo_4/dotGit/objects/96/c1c0a3632af796efd3942cc1d81d7af48ead3e new file mode 100644 index 00000000..f9dc2d4b Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/96/c1c0a3632af796efd3942cc1d81d7af48ead3e differ 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 00000000..2511ae02 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/a6/214eec6a6290fec81fe250e5b73b86d634a981 differ 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 00000000..f3a3ba39 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/b1/07a0d7a337f04413efa73d337461f548aef336 differ 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 00000000..ac93c76f Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/b1/0b3e2cb320a8c211fda94c4567299d37de7776 differ diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/b2/eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba b/test_data/test_repos/test_repo_4/dotGit/objects/b2/eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba new file mode 100644 index 00000000..41025422 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/b2/eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba differ diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/b4/70f07d2aaf2b537808b285cab667259b4e0ca7 b/test_data/test_repos/test_repo_4/dotGit/objects/b4/70f07d2aaf2b537808b285cab667259b4e0ca7 new file mode 100644 index 00000000..3d9899af Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/b4/70f07d2aaf2b537808b285cab667259b4e0ca7 differ 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 00000000..ff582f60 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/b8/a52870f2b093699e0d98cb896387c87e0c98a6 differ 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 00000000..5e07a204 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/c0/23aab082c73abd327675ad485fe78bb427ae21 differ diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/c1/bfab622827026dbd2eba4e2d75a8c523e55dc2 b/test_data/test_repos/test_repo_4/dotGit/objects/c1/bfab622827026dbd2eba4e2d75a8c523e55dc2 new file mode 100644 index 00000000..bd76a1d5 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/c1/bfab622827026dbd2eba4e2d75a8c523e55dc2 differ 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 00000000..7ed4768c Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/de/ea550dd6c7acaf0e59432600593533984a2125 differ 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 00000000..e8012361 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/e0/894b9037d76464dbb8d25768c9a036987d6ace differ 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 00000000..aaa3f442 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/e8/abc5d9c3ea7760bf20054e8dada3832f9a00a9 differ 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 00000000..6de09255 Binary files /dev/null and b/test_data/test_repos/test_repo_4/dotGit/objects/ef/8fd94f0a1a6f503949ac4b56f3604ec4e942e3 differ diff --git a/test_data/test_repos/test_repo_4/dotGit/objects/f6/1cd8587b7ac1d75a89a0c9af870a2f24c60263 b/test_data/test_repos/test_repo_4/dotGit/objects/f6/1cd8587b7ac1d75a89a0c9af870a2f24c60263 new file mode 100644 index 00000000..fac91610 --- /dev/null +++ b/test_data/test_repos/test_repo_4/dotGit/objects/f6/1cd8587b7ac1d75a89a0c9af870a2f24c60263 @@ -0,0 +1,2 @@ +x�ŽA +à E»ös�5JéUÆ™I¨1»Éé›^¡«ÿxðàS-eé`séM<{ŠÁ:‰!I&J‚.Ÿä§äÌèGQ6Y;d+yp8J1âÄ);DLÌ>Rdì'ã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. +