diff --git a/audit/audit_test.go b/audit/audit_test.go index 3ca813c3..c3370e58 100644 --- a/audit/audit_test.go +++ b/audit/audit_test.go @@ -243,6 +243,26 @@ func TestAudit(t *testing.T) { }, wantPath: "../test_data/test_local_owner_aws_leak_depth_2.json", }, + { + description: "test local repo five files at commit", + opts: options.Options{ + RepoPath: "../test_data/test_repos/test_repo_5", + Report: "../test_data/test_local_repo_five_files_at_commit.json.got", + FilesAtCommit: "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0", + ReportFormat: "json", + }, + wantPath: "../test_data/test_local_repo_five_files_at_commit.json", + }, + { + description: "test local repo five at commit", + opts: options.Options{ + RepoPath: "../test_data/test_repos/test_repo_5", + Report: "../test_data/test_local_repo_five_commit.json.got", + Commit: "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0", + ReportFormat: "json", + }, + wantPath: "../test_data/test_local_repo_five_commit.json", + }, } for _, test := range tests { diff --git a/audit/repo.go b/audit/repo.go index 77f01279..685d97fc 100644 --- a/audit/repo.go +++ b/audit/repo.go @@ -236,19 +236,12 @@ func (repo *Repo) Audit() error { auditTimeStart := time.Now() - // audit single Commit + // audit commit patches OR all files at commit. See https://github.com/zricethezav/gitleaks/issues/326 + // TODO having --commit= and --files-at-commit= set should probably be guarded against if repo.Manager.Opts.Commit != "" { - h := plumbing.NewHash(repo.Manager.Opts.Commit) - c, err := repo.CommitObject(h) - if err != nil { - return err - } - - err = inspectCommit(c, repo) - if err != nil { - return err - } - return nil + return inspectCommit(repo.Manager.Opts.Commit, repo, inspectCommitPatches) + } else if repo.Manager.Opts.FilesAtCommit != "" { + return inspectCommit(repo.Manager.Opts.FilesAtCommit, repo, inspectFilesAtCommit) } logOpts, err := getLogOptions(repo) @@ -271,7 +264,7 @@ func (repo *Repo) Audit() error { if len(c.ParentHashes) == 0 { cc++ - err = inspectCommit(c, repo) + err = inspectFilesAtCommit(c, repo) if err != nil { return err } diff --git a/audit/util.go b/audit/util.go index 4a90568a..181a98ef 100644 --- a/audit/util.go +++ b/audit/util.go @@ -255,11 +255,57 @@ func InspectString(content string, c *object.Commit, repo *Repo, filename string } } -// inspectCommit accepts a commit object and a repo. This function is only called when the --commit= +type commitInspector func(c *object.Commit, repo *Repo) error + +func inspectCommit(hash string, repo *Repo, f commitInspector) error { + h := plumbing.NewHash(hash) + c, err := repo.CommitObject(h) + if err != nil { + return err + } + return f(c, repo) +} + +// inspectCommitPatches accepts a commit object and a repo. This function is only called when the --commit= // option has been set. That option tells gitleaks to look only at a single commit and check the contents // of said commit. Similar to inspectPatch(), if the files contained in the commit are a binaries or if they are // whitelisted then those files will be skipped. -func inspectCommit(c *object.Commit, repo *Repo) error { +func inspectCommitPatches(c *object.Commit, repo *Repo) error { + if len(c.ParentHashes) == 0 { + err := inspectFilesAtCommit(c, repo) + if err != nil { + return err + } + } + + return c.Parents().ForEach(func(parent *object.Commit) error { + defer func() { + if err := recover(); err != nil { + // sometimes the patch generation will fail due to a known bug in + // sergi's go-diff: https://github.com/sergi/go-diff/issues/89. + // Once a fix has been merged I will remove this recover. + return + } + }() + if repo.timeoutReached() { + return nil + } + start := time.Now() + patch, err := c.Patch(parent) + if err != nil { + return fmt.Errorf("could not generate patch") + } + repo.Manager.RecordTime(manager.PatchTime(howLong(start))) + inspectPatch(patch, c, repo) + return nil + }) +} + +// inspectFilesAtCommit accepts a commit object and a repo. This function is only called when the --commit= +// option has been set. That option tells gitleaks to look only at a single commit and check the contents +// of said commit. Similar to inspectPatch(), if the files contained in the commit are a binaries or if they are +// whitelisted then those files will be skipped. +func inspectFilesAtCommit(c *object.Commit, repo *Repo) error { fIter, err := c.Files() if err != nil { return err diff --git a/options/options.go b/options/options.go index 035fcf02..ed0fe4c7 100644 --- a/options/options.go +++ b/options/options.go @@ -27,31 +27,32 @@ const ( // Options stores values of command line options type Options struct { - Verbose bool `short:"v" long:"verbose" description:"Show verbose output from audit"` - Repo string `short:"r" long:"repo" description:"Target repository"` - Config string `long:"config" description:"config path"` - Disk bool `long:"disk" description:"Clones repo(s) to disk"` - Version bool `long:"version" description:"version number"` - Username string `long:"username" description:"Username for git repo"` - Password string `long:"password" description:"Password for git repo"` - AccessToken string `long:"access-token" description:"Access token for git repo"` - Commit string `long:"commit" description:"sha of commit to audit"` - Threads int `long:"threads" description:"Maximum number of threads gitleaks spawns"` - SSH string `long:"ssh-key" description:"path to ssh key used for auth"` - Uncommited bool `long:"uncommitted" description:"run gitleaks on uncommitted code"` - RepoPath string `long:"repo-path" description:"Path to repo"` - OwnerPath string `long:"owner-path" description:"Path to owner directory (repos discovered)"` - Branch string `long:"branch" description:"Branch to audit"` - Report string `long:"report" description:"path to write json leaks file"` - ReportFormat string `long:"report-format" default:"json" description:"json or csv"` - Redact bool `long:"redact" description:"redact secrets from log messages and leaks"` - Debug bool `long:"debug" description:"log debug messages"` - RepoConfig bool `long:"repo-config" description:"Load config from target repo. Config file must be \".gitleaks.toml\" or \"gitleaks.toml\""` - PrettyPrint bool `long:"pretty" description:"Pretty print json if leaks are present"` - CommitFrom string `long:"commit-from" description:"Commit to start audit from"` - CommitTo string `long:"commit-to" description:"Commit to stop audit"` - Timeout string `long:"timeout" description:"Time allowed per audit. Ex: 10us, 30s, 1m, 1h10m1s"` - Depth int `long:"depth" description:"Number of commits to audit"` + Verbose bool `short:"v" long:"verbose" description:"Show verbose output from audit"` + Repo string `short:"r" long:"repo" description:"Target repository"` + Config string `long:"config" description:"config path"` + Disk bool `long:"disk" description:"Clones repo(s) to disk"` + Version bool `long:"version" description:"version number"` + Username string `long:"username" description:"Username for git repo"` + Password string `long:"password" description:"Password for git repo"` + AccessToken string `long:"access-token" description:"Access token for git repo"` + Commit string `long:"commit" description:"sha of commit to audit"` + FilesAtCommit string `long:"files-at-commit" description:"sha of commit to audit all files at commit"` + Threads int `long:"threads" description:"Maximum number of threads gitleaks spawns"` + SSH string `long:"ssh-key" description:"path to ssh key used for auth"` + Uncommited bool `long:"uncommitted" description:"run gitleaks on uncommitted code"` + RepoPath string `long:"repo-path" description:"Path to repo"` + OwnerPath string `long:"owner-path" description:"Path to owner directory (repos discovered)"` + Branch string `long:"branch" description:"Branch to audit"` + Report string `long:"report" description:"path to write json leaks file"` + ReportFormat string `long:"report-format" default:"json" description:"json or csv"` + Redact bool `long:"redact" description:"redact secrets from log messages and leaks"` + Debug bool `long:"debug" description:"log debug messages"` + RepoConfig bool `long:"repo-config" description:"Load config from target repo. Config file must be \".gitleaks.toml\" or \"gitleaks.toml\""` + PrettyPrint bool `long:"pretty" description:"Pretty print json if leaks are present"` + CommitFrom string `long:"commit-from" description:"Commit to start audit from"` + CommitTo string `long:"commit-to" description:"Commit to stop audit"` + Timeout string `long:"timeout" description:"Time allowed per audit. Ex: 10us, 30s, 1m, 1h10m1s"` + Depth int `long:"depth" description:"Number of commits to audit"` // Hosts Host string `long:"host" description:"git hosting service like gitlab or github. Supported hosts include: Github, Gitlab"` diff --git a/test_data/test_local_owner_aws_leak.json b/test_data/test_local_owner_aws_leak.json index 24e905cc..5b68494d 100644 --- a/test_data/test_local_owner_aws_leak.json +++ b/test_data/test_local_owner_aws_leak.json @@ -232,5 +232,44 @@ "file": "secrets.md", "date": "2019-10-25T13:35:03-04:00", "tags": "key, API, generic" + }, + { + "line": "\nmore_secrets = '99432bfewaf823ec3294e231'", + "offender": "secrets = '99432bfewaf823ec3294e231'", + "commit": "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0", + "repo": "test_repo_5", + "rule": "Generic Credential", + "commitMessage": "even more secrets\n", + "author": "Zach Rice", + "email": "zrice@gitlab.com", + "file": "secrets.py", + "date": "2020-02-01T10:30:22-05:00", + "tags": "key, API, generic" + }, + { + "line": "\naws_access_key_id='AKIAIO5FODNN7EXAMPL2'", + "offender": "AKIAIO5FODNN7EXAMPL2", + "commit": "ca71fcdeda15f25f0cc661d90e8785c255925c27", + "repo": "test_repo_5", + "rule": "AWS Manager ID", + "commitMessage": "introduce more secrets\n", + "author": "Zach Rice", + "email": "zrice@gitlab.com", + "file": "secrets.py", + "date": "2020-02-01T10:08:04-05:00", + "tags": "key, AWS" + }, + { + "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPLE'", + "offender": "AKIAIO5FODNN7EXAMPLE", + "commit": "1f2a4abc47dabf991e6af6f9770867ce0ac1f360", + "repo": "test_repo_5", + "rule": "AWS Manager ID", + "commitMessage": "introduce secrets\n", + "author": "Zach Rice", + "email": "zrice@gitlab.com", + "file": "secrets.py", + "date": "2020-02-01T10:07:34-05:00", + "tags": "key, AWS" } ] diff --git a/test_data/test_local_owner_aws_leak_depth_2.json b/test_data/test_local_owner_aws_leak_depth_2.json index 142126ef..1d5b326d 100644 --- a/test_data/test_local_owner_aws_leak_depth_2.json +++ b/test_data/test_local_owner_aws_leak_depth_2.json @@ -115,5 +115,31 @@ "file": "secrets.md", "date": "2019-10-25T13:54:08-04:00", "tags": "key, API, generic" + }, + { + "line": "\nmore_secrets = '99432bfewaf823ec3294e231'", + "offender": "secrets = '99432bfewaf823ec3294e231'", + "commit": "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0", + "repo": "test_repo_5", + "rule": "Generic Credential", + "commitMessage": "even more secrets\n", + "author": "Zach Rice", + "email": "zrice@gitlab.com", + "file": "secrets.py", + "date": "2020-02-01T10:30:22-05:00", + "tags": "key, API, generic" + }, + { + "line": "\naws_access_key_id='AKIAIO5FODNN7EXAMPL2'", + "offender": "AKIAIO5FODNN7EXAMPL2", + "commit": "ca71fcdeda15f25f0cc661d90e8785c255925c27", + "repo": "test_repo_5", + "rule": "AWS Manager ID", + "commitMessage": "introduce more secrets\n", + "author": "Zach Rice", + "email": "zrice@gitlab.com", + "file": "secrets.py", + "date": "2020-02-01T10:08:04-05:00", + "tags": "key, AWS" } ] diff --git a/test_data/test_local_repo_five_commit.json b/test_data/test_local_repo_five_commit.json new file mode 100644 index 00000000..73416d00 --- /dev/null +++ b/test_data/test_local_repo_five_commit.json @@ -0,0 +1,15 @@ +[ + { + "line": "\nmore_secrets = '99432bfewaf823ec3294e231'", + "offender": "secrets = '99432bfewaf823ec3294e231'", + "commit": "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0", + "repo": "test_repo_5", + "rule": "Generic Credential", + "commitMessage": "even more secrets\n", + "author": "Zach Rice", + "email": "zrice@gitlab.com", + "file": "secrets.py", + "date": "2020-02-01T10:30:22-05:00", + "tags": "key, API, generic" + } +] diff --git a/test_data/test_local_repo_five_files_at_commit.json b/test_data/test_local_repo_five_files_at_commit.json new file mode 100644 index 00000000..eaaeed3e --- /dev/null +++ b/test_data/test_local_repo_five_files_at_commit.json @@ -0,0 +1,41 @@ +[ + { + "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPLE'", + "offender": "AKIAIO5FODNN7EXAMPLE", + "commit": "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0", + "repo": "test_repo_5", + "rule": "AWS Manager ID", + "commitMessage": "even more secrets\n", + "author": "Zach Rice", + "email": "zrice@gitlab.com", + "file": "secrets.py", + "date": "2020-02-01T10:30:22-05:00", + "tags": "key, AWS" + }, + { + "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPL2'", + "offender": "AKIAIO5FODNN7EXAMPL2", + "commit": "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0", + "repo": "test_repo_5", + "rule": "AWS Manager ID", + "commitMessage": "even more secrets\n", + "author": "Zach Rice", + "email": "zrice@gitlab.com", + "file": "secrets.py", + "date": "2020-02-01T10:30:22-05:00", + "tags": "key, AWS" + }, + { + "line": "more_secrets = '99432bfewaf823ec3294e231'", + "offender": "secrets = '99432bfewaf823ec3294e231'", + "commit": "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0", + "repo": "test_repo_5", + "rule": "Generic Credential", + "commitMessage": "even more secrets\n", + "author": "Zach Rice", + "email": "zrice@gitlab.com", + "file": "secrets.py", + "date": "2020-02-01T10:30:22-05:00", + "tags": "key, API, generic" + } +] diff --git a/test_data/test_repos/test_repo_5/dotGit/COMMIT_EDITMSG b/test_data/test_repos/test_repo_5/dotGit/COMMIT_EDITMSG new file mode 100644 index 00000000..c629f60f --- /dev/null +++ b/test_data/test_repos/test_repo_5/dotGit/COMMIT_EDITMSG @@ -0,0 +1 @@ +even more secrets diff --git a/test_data/test_repos/test_repo_5/dotGit/HEAD b/test_data/test_repos/test_repo_5/dotGit/HEAD new file mode 100644 index 00000000..cb089cd8 --- /dev/null +++ b/test_data/test_repos/test_repo_5/dotGit/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/test_data/test_repos/test_repo_5/dotGit/config b/test_data/test_repos/test_repo_5/dotGit/config new file mode 100644 index 00000000..6c9406b7 --- /dev/null +++ b/test_data/test_repos/test_repo_5/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_5/dotGit/description b/test_data/test_repos/test_repo_5/dotGit/description new file mode 100644 index 00000000..498b267a --- /dev/null +++ b/test_data/test_repos/test_repo_5/dotGit/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/test_data/test_repos/test_repo_5/dotGit/index b/test_data/test_repos/test_repo_5/dotGit/index new file mode 100644 index 00000000..c4a9350c Binary files /dev/null and b/test_data/test_repos/test_repo_5/dotGit/index differ diff --git a/test_data/test_repos/test_repo_5/dotGit/info/exclude b/test_data/test_repos/test_repo_5/dotGit/info/exclude new file mode 100644 index 00000000..a5196d1b --- /dev/null +++ b/test_data/test_repos/test_repo_5/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_5/dotGit/logs/HEAD b/test_data/test_repos/test_repo_5/dotGit/logs/HEAD new file mode 100644 index 00000000..f4063b51 --- /dev/null +++ b/test_data/test_repos/test_repo_5/dotGit/logs/HEAD @@ -0,0 +1,4 @@ +0000000000000000000000000000000000000000 547bc0caa26ce3f20bea9ad9bb0f7e3e9dc749ec Zach Rice 1580490269 -0500 commit (initial): init +547bc0caa26ce3f20bea9ad9bb0f7e3e9dc749ec 1f2a4abc47dabf991e6af6f9770867ce0ac1f360 Zach Rice 1580569654 -0500 commit: introduce secrets +1f2a4abc47dabf991e6af6f9770867ce0ac1f360 ca71fcdeda15f25f0cc661d90e8785c255925c27 Zach Rice 1580569684 -0500 commit: introduce more secrets +ca71fcdeda15f25f0cc661d90e8785c255925c27 a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0 Zach Rice 1580571022 -0500 commit: even more secrets diff --git a/test_data/test_repos/test_repo_5/dotGit/logs/refs/heads/master b/test_data/test_repos/test_repo_5/dotGit/logs/refs/heads/master new file mode 100644 index 00000000..f4063b51 --- /dev/null +++ b/test_data/test_repos/test_repo_5/dotGit/logs/refs/heads/master @@ -0,0 +1,4 @@ +0000000000000000000000000000000000000000 547bc0caa26ce3f20bea9ad9bb0f7e3e9dc749ec Zach Rice 1580490269 -0500 commit (initial): init +547bc0caa26ce3f20bea9ad9bb0f7e3e9dc749ec 1f2a4abc47dabf991e6af6f9770867ce0ac1f360 Zach Rice 1580569654 -0500 commit: introduce secrets +1f2a4abc47dabf991e6af6f9770867ce0ac1f360 ca71fcdeda15f25f0cc661d90e8785c255925c27 Zach Rice 1580569684 -0500 commit: introduce more secrets +ca71fcdeda15f25f0cc661d90e8785c255925c27 a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0 Zach Rice 1580571022 -0500 commit: even more secrets diff --git a/test_data/test_repos/test_repo_5/dotGit/objects/00/9114bb4fc3521c478aeb1666f4fc87a4fe2964 b/test_data/test_repos/test_repo_5/dotGit/objects/00/9114bb4fc3521c478aeb1666f4fc87a4fe2964 new file mode 100644 index 00000000..33381fc0 Binary files /dev/null and b/test_data/test_repos/test_repo_5/dotGit/objects/00/9114bb4fc3521c478aeb1666f4fc87a4fe2964 differ diff --git a/test_data/test_repos/test_repo_5/dotGit/objects/1f/2a4abc47dabf991e6af6f9770867ce0ac1f360 b/test_data/test_repos/test_repo_5/dotGit/objects/1f/2a4abc47dabf991e6af6f9770867ce0ac1f360 new file mode 100644 index 00000000..cadf400d --- /dev/null +++ b/test_data/test_repos/test_repo_5/dotGit/objects/1f/2a4abc47dabf991e6af6f9770867ce0ac1f360 @@ -0,0 +1,2 @@ +x•ŽM +Â0F]ç¹€’ß&ÏàÒÝÌdb¶•4ÝxzsWFfgjÜwñ;ìH� \ No newline at end of file diff --git a/test_data/test_repos/test_repo_5/dotGit/objects/2b/8f95ef90b07889acd0607a91a22bee87ac4a46 b/test_data/test_repos/test_repo_5/dotGit/objects/2b/8f95ef90b07889acd0607a91a22bee87ac4a46 new file mode 100644 index 00000000..d98e1094 Binary files /dev/null and b/test_data/test_repos/test_repo_5/dotGit/objects/2b/8f95ef90b07889acd0607a91a22bee87ac4a46 differ diff --git a/test_data/test_repos/test_repo_5/dotGit/objects/54/7bc0caa26ce3f20bea9ad9bb0f7e3e9dc749ec b/test_data/test_repos/test_repo_5/dotGit/objects/54/7bc0caa26ce3f20bea9ad9bb0f7e3e9dc749ec new file mode 100644 index 00000000..9e502d7f --- /dev/null +++ b/test_data/test_repos/test_repo_5/dotGit/objects/54/7bc0caa26ce3f20bea9ad9bb0f7e3e9dc749ec @@ -0,0 +1,4 @@ +x•�A +‚!F[{й@1ú«)Dt†–ítû…L�iÓéó +­>xðÞG£÷& ½>Èd*¶š’3ç@hü‘μéZB$olEçL.dTúÈ>&<ípoÄpùÎ5·g“WÊ'ý +Ú´qe"Ñ!ªE×›ð¿žjï&êÚQ3– \ No newline at end of file diff --git a/test_data/test_repos/test_repo_5/dotGit/objects/5d/bb39e8aa13063310c7cd4787a62d3119674be0 b/test_data/test_repos/test_repo_5/dotGit/objects/5d/bb39e8aa13063310c7cd4787a62d3119674be0 new file mode 100644 index 00000000..1dbbf398 Binary files /dev/null and b/test_data/test_repos/test_repo_5/dotGit/objects/5d/bb39e8aa13063310c7cd4787a62d3119674be0 differ diff --git a/test_data/test_repos/test_repo_5/dotGit/objects/81/723dcbff8ae8bbcb2fb3051bfd12c79bd4b8fb b/test_data/test_repos/test_repo_5/dotGit/objects/81/723dcbff8ae8bbcb2fb3051bfd12c79bd4b8fb new file mode 100644 index 00000000..058a1664 Binary files /dev/null and b/test_data/test_repos/test_repo_5/dotGit/objects/81/723dcbff8ae8bbcb2fb3051bfd12c79bd4b8fb differ diff --git a/test_data/test_repos/test_repo_5/dotGit/objects/97/2ea8fcf4f3d9a216644c8eb11df1382b6e02ab b/test_data/test_repos/test_repo_5/dotGit/objects/97/2ea8fcf4f3d9a216644c8eb11df1382b6e02ab new file mode 100644 index 00000000..a0c87faa Binary files /dev/null and b/test_data/test_repos/test_repo_5/dotGit/objects/97/2ea8fcf4f3d9a216644c8eb11df1382b6e02ab differ diff --git a/test_data/test_repos/test_repo_5/dotGit/objects/a4/c9fb737d5552fd96fce5cc7eedb23353ba9ed0 b/test_data/test_repos/test_repo_5/dotGit/objects/a4/c9fb737d5552fd96fce5cc7eedb23353ba9ed0 new file mode 100644 index 00000000..8cf14f84 --- /dev/null +++ b/test_data/test_repos/test_repo_5/dotGit/objects/a4/c9fb737d5552fd96fce5cc7eedb23353ba9ed0 @@ -0,0 +1,2 @@ +x•ŽA +Â0E]çse2Í$-ˆx—îÒéÄl#itáéÍ\=xŸ_òº.ˆèP‹*$% .29¥ë1«O® ê58ï�Ìæ‹n$›dÒ)ZNÄ E¼·Ó€Ú‡ž¥Å5ßuÎîQf¸-¢pþ–†ëc©Ï8ž$¯°Ü#‹DpDF4ͶwUÿíŒ~tƒ5…]¥hÝÍ\ïES \ No newline at end of file diff --git a/test_data/test_repos/test_repo_5/dotGit/objects/ca/71fcdeda15f25f0cc661d90e8785c255925c27 b/test_data/test_repos/test_repo_5/dotGit/objects/ca/71fcdeda15f25f0cc661d90e8785c255925c27 new file mode 100644 index 00000000..d3f4ab8c --- /dev/null +++ b/test_data/test_repos/test_repo_5/dotGit/objects/ca/71fcdeda15f25f0cc661d90e8785c255925c27 @@ -0,0 +1 @@ +x•ŽAj1 E»ö)t�yì‘l(¥gȲ;Y–“�N\g“Óg®ÐÕ‡�÷µïû6aYøc3Xk)![ñ)�ÊZ#'Zjð>ÇbèþdØ}‚o‹D)¹Ji9{#iÔ23&b5õ-:yÎ[ð#zƒË¦Ÿ¯qÌ÷u›¿RÎÚ÷/ðk•2¥'\ÝA�wÓþë¹í>G¯Ï#³÷að06î ÿGó \ No newline at end of file diff --git a/test_data/test_repos/test_repo_5/dotGit/objects/cd/4f2dbbeb8c026390c7e31fd89c624f0552bdc2 b/test_data/test_repos/test_repo_5/dotGit/objects/cd/4f2dbbeb8c026390c7e31fd89c624f0552bdc2 new file mode 100644 index 00000000..54825cb8 Binary files /dev/null and b/test_data/test_repos/test_repo_5/dotGit/objects/cd/4f2dbbeb8c026390c7e31fd89c624f0552bdc2 differ diff --git a/test_data/test_repos/test_repo_5/dotGit/objects/f6/878b4d8b01947b3bd9bf23de8446cb6cae335e b/test_data/test_repos/test_repo_5/dotGit/objects/f6/878b4d8b01947b3bd9bf23de8446cb6cae335e new file mode 100644 index 00000000..0f4f4957 Binary files /dev/null and b/test_data/test_repos/test_repo_5/dotGit/objects/f6/878b4d8b01947b3bd9bf23de8446cb6cae335e differ diff --git a/test_data/test_repos/test_repo_5/dotGit/objects/fe/2074a5245bc33007255e6f4fe2e6e7464f2b55 b/test_data/test_repos/test_repo_5/dotGit/objects/fe/2074a5245bc33007255e6f4fe2e6e7464f2b55 new file mode 100644 index 00000000..6ea38dfc Binary files /dev/null and b/test_data/test_repos/test_repo_5/dotGit/objects/fe/2074a5245bc33007255e6f4fe2e6e7464f2b55 differ diff --git a/test_data/test_repos/test_repo_5/dotGit/refs/heads/master b/test_data/test_repos/test_repo_5/dotGit/refs/heads/master new file mode 100644 index 00000000..14220c0e --- /dev/null +++ b/test_data/test_repos/test_repo_5/dotGit/refs/heads/master @@ -0,0 +1 @@ +a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0 diff --git a/test_data/test_repos/test_repo_5/notes.md b/test_data/test_repos/test_repo_5/notes.md new file mode 100644 index 00000000..972ea8fc --- /dev/null +++ b/test_data/test_repos/test_repo_5/notes.md @@ -0,0 +1 @@ +Init diff --git a/test_data/test_repos/test_repo_5/secrets.py b/test_data/test_repos/test_repo_5/secrets.py new file mode 100644 index 00000000..009114bb --- /dev/null +++ b/test_data/test_repos/test_repo_5/secrets.py @@ -0,0 +1,9 @@ +aws_access_key_id='AKIAIO5FODNN7EXAMPLE' +print(aws_access_key_id) + +aws_access_key_id='AKIAIO5FODNN7EXAMPL2' +print(aws_access_key_id) + +more_secrets = '99432bfewaf823ec3294e231' +print(more_secrets) +