diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index f9b0a976..f2db04c8 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -3,3 +3,4 @@ description: Detect hardcoded secrets using Gitleaks entry: gitleaks language: golang + pass_filenames: false diff --git a/README.md b/README.md index c8594451..4f40b6d3 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ docker run -v ${PWD}:/my-repo zricethezav/gitleaks:latest --path="/my-repo" [OPT ``` ##### Go +Go 1.16+ required. ```bash GO111MODULE=on go get github.com/zricethezav/gitleaks/v7 ``` @@ -172,7 +173,7 @@ gitleaks --path=path/to/local/repo -v --unstaged ### Configuration Provide your own gitleaks configurations with `--config-path` or `--repo-config-path`. `--config-path` loads a local gitleaks configuration whereas `--repo-config-path` will load a configuration present just in the repo you want to scan. For example, `gitleaks --repo-config-path=".github/gitleaks.config"`. -The default configuration Gitleaks uses is located [here](https://github.com/zricethezav/gitleaks/blob/master/config/default.go). More configuration examples can be seen [here](https://github.com/zricethezav/gitleaks/tree/master/examples). Configuration files will contain a few different toml tables. Further explanation is provided below. +The default configuration Gitleaks uses is located [here](https://github.com/zricethezav/gitleaks/blob/master/config/gitleaks.toml). More configuration examples can be seen [here](https://github.com/zricethezav/gitleaks/tree/master/examples). Configuration files will contain a few different toml tables. Further explanation is provided below. ### Rules summary @@ -180,7 +181,7 @@ The rules are written in [TOML](https://github.com/toml-lang/toml) as defined in ```toml [[rules]] - description = "a string describing one of many rule in this config" + description = "a string describing one of many rules in this config" regex = '''one-go-style-regex-for-this-rule''' file = '''a-file-name-regex''' path = '''a-file-path-regex''' diff --git a/config/config_test.go b/config/config_test.go index 491d5de0..d1eea0b8 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -1,15 +1,19 @@ -package config +package config_test import ( "fmt" "io/ioutil" "os" + "path/filepath" "regexp" "testing" + "github.com/zricethezav/gitleaks/v7/config" "github.com/zricethezav/gitleaks/v7/options" ) +const configPath = "../testdata/configs/" + func TestParse(t *testing.T) { tests := []struct { description string @@ -17,7 +21,7 @@ func TestParse(t *testing.T) { wantErr error wantFileRegex *regexp.Regexp wantMessages *regexp.Regexp - wantAllowlist AllowList + wantAllowlist config.AllowList }{ { description: "default config", @@ -26,102 +30,102 @@ func TestParse(t *testing.T) { { description: "test successful load", opts: options.Options{ - ConfigPath: "../test_data/test_configs/aws_key.toml", + ConfigPath: filepath.Join(configPath, "aws_key.toml"), }, }, { description: "test bad toml", opts: options.Options{ - ConfigPath: "../test_data/test_configs/bad_aws_key.toml", + ConfigPath: filepath.Join(configPath, "bad_aws_key.toml"), }, wantErr: fmt.Errorf("Near line 7 (last key parsed 'rules.description'): expected value but found \"AWS\" instead"), }, { description: "test bad regex", opts: options.Options{ - ConfigPath: "../test_data/test_configs/bad_regex_aws_key.toml", + ConfigPath: filepath.Join(configPath, "bad_regex_aws_key.toml"), }, wantErr: fmt.Errorf("problem loading config: error parsing regexp: invalid nested repetition operator: `???`"), }, { description: "test bad global allowlist file regex", opts: options.Options{ - ConfigPath: "../test_data/test_configs/bad_aws_key_global_allowlist_file.toml", + ConfigPath: filepath.Join(configPath, "bad_aws_key_global_allowlist_file.toml"), }, wantErr: fmt.Errorf("problem loading config: error parsing regexp: missing argument to repetition operator: `??`"), }, { description: "test bad global file regex", opts: options.Options{ - ConfigPath: "../test_data/test_configs/bad_aws_key_file_regex.toml", + ConfigPath: filepath.Join(configPath, "bad_aws_key_file_regex.toml"), }, wantErr: fmt.Errorf("problem loading config: error parsing regexp: missing argument to repetition operator: `??`"), }, { description: "test successful load big ol thing", opts: options.Options{ - ConfigPath: "../test_data/test_configs/large.toml", + ConfigPath: filepath.Join(configPath, "large.toml"), }, }, { description: "test load entropy", opts: options.Options{ - ConfigPath: "../test_data/test_configs/entropy.toml", + ConfigPath: filepath.Join(configPath, "entropy.toml"), }, }, { description: "test entropy bad range", opts: options.Options{ - ConfigPath: "../test_data/test_configs/bad_entropy_1.toml", + ConfigPath: filepath.Join(configPath, "bad_entropy_1.toml"), }, wantErr: fmt.Errorf("problem loading config: entropy Min value cannot be higher than Max value"), }, { description: "test entropy value max", opts: options.Options{ - ConfigPath: "../test_data/test_configs/bad_entropy_2.toml", + ConfigPath: filepath.Join(configPath, "bad_entropy_2.toml"), }, wantErr: fmt.Errorf("strconv.ParseFloat: parsing \"x\": invalid syntax"), }, { description: "test entropy value min", opts: options.Options{ - ConfigPath: "../test_data/test_configs/bad_entropy_3.toml", + ConfigPath: filepath.Join(configPath, "bad_entropy_3.toml"), }, wantErr: fmt.Errorf("strconv.ParseFloat: parsing \"x\": invalid syntax"), }, { description: "test entropy value group", opts: options.Options{ - ConfigPath: "../test_data/test_configs/bad_entropy_4.toml", + ConfigPath: filepath.Join(configPath, "bad_entropy_4.toml"), }, wantErr: fmt.Errorf("strconv.ParseInt: parsing \"x\": invalid syntax"), }, { description: "test entropy value group", opts: options.Options{ - ConfigPath: "../test_data/test_configs/bad_entropy_5.toml", + ConfigPath: filepath.Join(configPath, "bad_entropy_5.toml"), }, wantErr: fmt.Errorf("problem loading config: group cannot be lower than 0"), }, { description: "test entropy value group", opts: options.Options{ - ConfigPath: "../test_data/test_configs/bad_entropy_6.toml", + ConfigPath: filepath.Join(configPath, "bad_entropy_6.toml"), }, wantErr: fmt.Errorf("problem loading config: group cannot be higher than number of groups in regexp"), }, { description: "test entropy range limits", opts: options.Options{ - ConfigPath: "../test_data/test_configs/bad_entropy_7.toml", + ConfigPath: filepath.Join(configPath, "bad_entropy_7.toml"), }, wantErr: fmt.Errorf("problem loading config: invalid entropy ranges, must be within 0.0-8.0"), }, } for _, test := range tests { - _, err := NewConfig(test.opts) + _, err := config.NewConfig(test.opts) if err != nil { if test.wantErr == nil { t.Error(test.description, err) @@ -151,7 +155,7 @@ func TestParseFields(t *testing.T) { t.Fatal(err) } - config, err := NewConfig(options.Options{ConfigPath: configPath}) + config, err := config.NewConfig(options.Options{ConfigPath: configPath}) if err != nil { t.Fatalf("Couldn't parse config: %v", err) } @@ -185,7 +189,7 @@ func TestParseFields(t *testing.T) { } } -func findRuleByDescription(rules []Rule, description string) (*Rule, error) { +func findRuleByDescription(rules []config.Rule, description string) (*config.Rule, error) { for _, rule := range rules { if rule.Description == description { return &rule, nil @@ -216,7 +220,7 @@ func TestAppendingConfiguration(t *testing.T) { testRegexA, _ := regexp.Compile("a") testRegexB, _ := regexp.Compile("b") - allowListA := AllowList{ + allowListA := config.AllowList{ Description: "Test Description", Commits: []string{"a"}, Files: []*regexp.Regexp{testRegexA}, @@ -225,7 +229,7 @@ func TestAppendingConfiguration(t *testing.T) { Repos: []*regexp.Regexp{testRegexA}, } - allowListB := AllowList{ + allowListB := config.AllowList{ Description: "Test Description", Commits: []string{"b"}, Files: []*regexp.Regexp{testRegexB}, @@ -234,18 +238,18 @@ func TestAppendingConfiguration(t *testing.T) { Repos: []*regexp.Regexp{testRegexB}, } - ruleA := Rule{Description: "a"} - ruleB := Rule{Description: "b"} + ruleA := config.Rule{Description: "a"} + ruleB := config.Rule{Description: "b"} - rulesA := []Rule{ruleA} - rulesB := []Rule{ruleB} + rulesA := []config.Rule{ruleA} + rulesB := []config.Rule{ruleB} - cfgA := Config{ + cfgA := config.Config{ Rules: rulesA, Allowlist: allowListA, } - cfgB := Config{ + cfgB := config.Config{ Rules: rulesB, Allowlist: allowListB, } diff --git a/scan/commit_test.go b/scan/commit_test.go new file mode 100644 index 00000000..65fddb62 --- /dev/null +++ b/scan/commit_test.go @@ -0,0 +1,90 @@ +package scan_test + +import ( + "path/filepath" + "testing" + + "github.com/zricethezav/gitleaks/v7/config" + "github.com/zricethezav/gitleaks/v7/options" + "github.com/zricethezav/gitleaks/v7/scan" +) + +func TestCommitScan(t *testing.T) { + err := moveDotGit("dotGit", ".git") + if err != nil { + t.Fatal(err) + } + defer moveDotGit(".git", "dotGit") + tests := []struct { + description string + opts options.Options + wantPath string + empty bool + }{ + { + description: "empty repo", + opts: options.Options{ + Path: filepath.Join(repoBasePath, "empty"), + Report: filepath.Join(expectPath, "empty", "empty_report.json.got"), + }, + empty: true, + }, + { + description: "basic repo with default config at specific commit", + opts: options.Options{ + Path: filepath.Join(repoBasePath, "basic"), + Report: filepath.Join(expectPath, "basic", "results_208ae46.json.got"), + ReportFormat: "json", + Commit: "208ae4669ade2563fcaf9f12922fa2c0a5b37c63", + }, + wantPath: filepath.Join(expectPath, "basic", "results_208ae46.json"), + }, + { + description: "basic repo with custom config at specific commit", + opts: options.Options{ + Path: filepath.Join(repoBasePath, "with_config"), + Report: filepath.Join(expectPath, "with_config", "results_e7c0aff3.json.got"), + ReportFormat: "json", + RepoConfigPath: "gitleaks.toml", + Commit: "e7c0aff3e8a60b50a85432fdf933f8beff013743", + }, + wantPath: filepath.Join(expectPath, "with_config", "results_e7c0aff3.json"), + }, + } + + for _, test := range tests { + cfg, err := config.NewConfig(test.opts) + if err != nil { + t.Error(err) + } + + scanner, err := scan.NewScanner(test.opts, cfg) + if err != nil { + t.Error(test.description, err) + } + + scannerReport, err := scanner.Scan() + if err != nil { + t.Fatal(test.description, err) + } + + err = scan.WriteReport(scannerReport, test.opts, cfg) + if err != nil { + t.Error(test.description, err) + } + + if test.empty { + if len(scannerReport.Leaks) != 0 { + t.Errorf("%s wanted no leaks but got some instead: %+v", test.description, scannerReport.Leaks) + } + continue + } + + if test.wantPath != "" { + err := fileCheck(test.wantPath, test.opts.Report) + if err != nil { + t.Error(test.description, err) + } + } + } +} diff --git a/scan/commits.go b/scan/commits.go index c2dd2f29..26c8f696 100644 --- a/scan/commits.go +++ b/scan/commits.go @@ -2,6 +2,8 @@ package scan import ( "github.com/go-git/go-git/v5" + log "github.com/sirupsen/logrus" + "github.com/zricethezav/gitleaks/v7/config" "github.com/zricethezav/gitleaks/v7/options" ) @@ -30,10 +32,11 @@ func NewCommitsScanner(opts options.Options, cfg config.Config, repo *git.Reposi // Scan kicks off a CommitsScanner Scan func (css *CommitsScanner) Scan() (Report, error) { var scannerReport Report - for _, c := range css.commits { - c, err := obtainCommit(css.repo, c) + for _, commitHash := range css.commits { + c, err := obtainCommit(css.repo, commitHash) if err != nil { - return scannerReport, nil + log.Errorf("skipping %s, err: %v", commitHash, err) + continue } cs := NewCommitScanner(css.opts, css.cfg, css.repo, c) commitReport, err := cs.Scan() diff --git a/scan/commits_test.go b/scan/commits_test.go new file mode 100644 index 00000000..2dbd88d7 --- /dev/null +++ b/scan/commits_test.go @@ -0,0 +1,102 @@ +package scan_test + +import ( + "path/filepath" + "testing" + + "github.com/zricethezav/gitleaks/v7/config" + "github.com/zricethezav/gitleaks/v7/options" + "github.com/zricethezav/gitleaks/v7/scan" +) + +func TestCommitsScan(t *testing.T) { + err := moveDotGit("dotGit", ".git") + if err != nil { + t.Fatal(err) + } + defer moveDotGit(".git", "dotGit") + tests := []struct { + description string + opts options.Options + wantPath string + empty bool + }{ + { + description: "basic repo with default config ranging first and third commit", + opts: options.Options{ + Path: filepath.Join(repoBasePath, "basic"), + Report: filepath.Join(expectPath, "basic", "results_ae8db4a2_208ae46.json.got"), + ReportFormat: "json", + Commits: "ae8db4a2306798fcb3a5b9cbe8c486027fc1931f,208ae4669ade2563fcaf9f12922fa2c0a5b37c63", + }, + wantPath: filepath.Join(expectPath, "basic", "results_ae8db4a2_208ae46.json"), + }, + { + description: "repo with config first two commits", + opts: options.Options{ + Path: filepath.Join(repoBasePath, "with_config"), + Report: filepath.Join(expectPath, "with_config", "results_ae8db4a_e7c0aff.json.got"), + ReportFormat: "json", + RepoConfigPath: "gitleaks.toml", + Commits: "ae8db4a2306798fcb3a5b9cbe8c486027fc1931f,e7c0aff3e8a60b50a85432fdf933f8beff013743", + }, + wantPath: filepath.Join(expectPath, "with_config", "results_ae8db4a_e7c0aff.json"), + }, + { + description: "basic repo with depth=1", + opts: options.Options{ + Path: filepath.Join(repoBasePath, "basic"), + Report: filepath.Join(expectPath, "basic", "results_depth_1.json.got"), + ReportFormat: "json", + Depth: 1, + }, + wantPath: filepath.Join(expectPath, "basic", "results_depth_1.json"), + }, + { + description: "basic repo with default config ranging first and third commit with a non-existent commit in middle", + opts: options.Options{ + Path: filepath.Join(repoBasePath, "basic"), + Report: filepath.Join(expectPath, "basic", "results_ae8db4a2_208ae46.json.got"), + ReportFormat: "json", + Commits: "ae8db4a2306798fcb3a5b9cbe8c486027fc1931f,nocommithere,208ae4669ade2563fcaf9f12922fa2c0a5b37c63", + }, + wantPath: filepath.Join(expectPath, "basic", "results_ae8db4a2_208ae46.json"), + }, + } + + for _, test := range tests { + cfg, err := config.NewConfig(test.opts) + if err != nil { + t.Error(err) + } + + scanner, err := scan.NewScanner(test.opts, cfg) + if err != nil { + t.Error(test.description, err) + } + + scannerReport, err := scanner.Scan() + if err != nil { + t.Fatal(test.description, err) + } + + err = scan.WriteReport(scannerReport, test.opts, cfg) + if err != nil { + t.Error(test.description, err) + } + + if test.empty { + if len(scannerReport.Leaks) != 0 { + t.Errorf("%s wanted no leaks but got some instead: %+v", test.description, scannerReport.Leaks) + } + continue + } + + if test.wantPath != "" { + err := fileCheck(test.wantPath, test.opts.Report) + if err != nil { + t.Error(test.description, err) + } + } + } +} diff --git a/scan/filesatcommit_test.go b/scan/filesatcommit_test.go new file mode 100644 index 00000000..9316724b --- /dev/null +++ b/scan/filesatcommit_test.go @@ -0,0 +1,81 @@ +package scan_test + +import ( + "path/filepath" + "testing" + + "github.com/zricethezav/gitleaks/v7/config" + "github.com/zricethezav/gitleaks/v7/options" + "github.com/zricethezav/gitleaks/v7/scan" +) + +func TestFilesAtCommitScan(t *testing.T) { + err := moveDotGit("dotGit", ".git") + if err != nil { + t.Fatal(err) + } + defer moveDotGit(".git", "dotGit") + tests := []struct { + description string + opts options.Options + wantPath string + empty bool + }{ + { + description: "basic repo with no secrets present in files at first commit", + opts: options.Options{ + Path: filepath.Join(repoBasePath, "basic"), + Report: filepath.Join(expectPath, "basic", "results_files_at_ae8db4a2.json.got"), + ReportFormat: "json", + FilesAtCommit: "ae8db4a2306798fcb3a5b9cbe8c486027fc1931f", + }, + empty: true, + }, + { + description: "basic repo with secrets present in files at third commit", + opts: options.Options{ + Path: filepath.Join(repoBasePath, "basic"), + Report: filepath.Join(expectPath, "basic", "results_files_at_208ae46.json.got"), + ReportFormat: "json", + FilesAtCommit: "208ae4669ade2563fcaf9f12922fa2c0a5b37c63", + }, + wantPath: filepath.Join(expectPath, "basic", "results_files_at_208ae46.json"), + }, + } + + for _, test := range tests { + cfg, err := config.NewConfig(test.opts) + if err != nil { + t.Error(err) + } + + scanner, err := scan.NewScanner(test.opts, cfg) + if err != nil { + t.Error(test.description, err) + } + + scannerReport, err := scanner.Scan() + if err != nil { + t.Fatal(test.description, err) + } + + err = scan.WriteReport(scannerReport, test.opts, cfg) + if err != nil { + t.Error(test.description, err) + } + + if test.empty { + if len(scannerReport.Leaks) != 0 { + t.Errorf("%s wanted no leaks but got some instead: %+v", test.description, scannerReport.Leaks) + } + continue + } + + if test.wantPath != "" { + err := fileCheck(test.wantPath, test.opts.Report) + if err != nil { + t.Error(test.description, err) + } + } + } +} diff --git a/scan/nogit.go b/scan/nogit.go index 9a526675..540883ee 100644 --- a/scan/nogit.go +++ b/scan/nogit.go @@ -9,11 +9,10 @@ import ( "sync" log "github.com/sirupsen/logrus" + "golang.org/x/sync/errgroup" "github.com/zricethezav/gitleaks/v7/config" "github.com/zricethezav/gitleaks/v7/options" - - "golang.org/x/sync/errgroup" ) // NoGitScanner is a scanner that absolutely despises git @@ -47,11 +46,8 @@ func NewNoGitScanner(opts options.Options, cfg config.Config) *NoGitScanner { // Scan kicks off a NoGitScanner Scan func (ngs *NoGitScanner) Scan() (Report, error) { var scannerReport Report - g, _ := errgroup.WithContext(context.Background()) - paths := make(chan string) - g.Go(func() error { defer close(paths) return filepath.Walk(ngs.opts.Path, diff --git a/scan/nogit_test.go b/scan/nogit_test.go new file mode 100644 index 00000000..fd3f34ac --- /dev/null +++ b/scan/nogit_test.go @@ -0,0 +1,81 @@ +package scan_test + +import ( + "path/filepath" + "testing" + + "github.com/zricethezav/gitleaks/v7/config" + "github.com/zricethezav/gitleaks/v7/options" + "github.com/zricethezav/gitleaks/v7/scan" +) + +func TestNoGit(t *testing.T) { + err := moveDotGit("dotGit", ".git") + if err != nil { + t.Fatal(err) + } + defer moveDotGit(".git", "dotGit") + tests := []struct { + description string + opts options.Options + wantPath string + empty bool + }{ + { + description: "[nogit] basic repo", + opts: options.Options{ + Path: filepath.Join(repoBasePath, "basic"), + Report: filepath.Join(expectPath, "basic", "results_no_git.json.got"), + ReportFormat: "json", + NoGit: true, + }, + wantPath: filepath.Join(expectPath, "basic", "results_no_git.json"), + }, + { + description: "[nogit] empty", + opts: options.Options{ + Path: filepath.Join(repoBasePath, "empty"), + Report: filepath.Join(expectPath, "empty", "results_no_git_empty.json.got"), + ReportFormat: "json", + NoGit: true, + }, + empty: true, + }, + } + + for _, test := range tests { + cfg, err := config.NewConfig(test.opts) + if err != nil { + t.Error(err) + } + + scanner, err := scan.NewScanner(test.opts, cfg) + if err != nil { + t.Error(test.description, err) + } + + scannerReport, err := scanner.Scan() + if err != nil { + t.Fatal(test.description, err) + } + + err = scan.WriteReport(scannerReport, test.opts, cfg) + if err != nil { + t.Error(test.description, err) + } + + if test.empty { + if len(scannerReport.Leaks) != 0 { + t.Errorf("%s wanted no leaks but got some instead: %+v", test.description, scannerReport.Leaks) + } + continue + } + + if test.wantPath != "" { + err := fileCheck(test.wantPath, test.opts.Report) + if err != nil { + t.Error(test.description, err) + } + } + } +} diff --git a/scan/repo_test.go b/scan/repo_test.go new file mode 100644 index 00000000..4c14f05e --- /dev/null +++ b/scan/repo_test.go @@ -0,0 +1,88 @@ +package scan_test + +import ( + "path/filepath" + "testing" + + "github.com/zricethezav/gitleaks/v7/config" + "github.com/zricethezav/gitleaks/v7/options" + "github.com/zricethezav/gitleaks/v7/scan" +) + +func TestRepoScan(t *testing.T) { + err := moveDotGit("dotGit", ".git") + if err != nil { + t.Fatal(err) + } + defer moveDotGit(".git", "dotGit") + tests := []struct { + description string + opts options.Options + wantPath string + empty bool + }{ + { + description: "empty repo", + opts: options.Options{ + Path: filepath.Join(repoBasePath, "empty"), + Report: filepath.Join(expectPath, "empty", "empty_report.json.got"), + }, + empty: true, + }, + { + description: "basic repo with default config", + opts: options.Options{ + Path: filepath.Join(repoBasePath, "basic"), + Report: filepath.Join(expectPath, "basic", "results.json.got"), + ReportFormat: "json", + }, + wantPath: filepath.Join(expectPath, "basic", "results.json"), + }, + { + description: "with_config repo", + opts: options.Options{ + Path: filepath.Join(repoBasePath, "with_config"), + Report: filepath.Join(expectPath, "with_config", "results.json.got"), + RepoConfigPath: "gitleaks.toml", + ReportFormat: "json", + }, + wantPath: filepath.Join(expectPath, "with_config", "results.json"), + }, + } + + for _, test := range tests { + cfg, err := config.NewConfig(test.opts) + if err != nil { + t.Error(err) + } + + scanner, err := scan.NewScanner(test.opts, cfg) + if err != nil { + t.Error(test.description, err) + } + + scannerReport, err := scanner.Scan() + if err != nil { + t.Fatal(test.description, err) + } + + err = scan.WriteReport(scannerReport, test.opts, cfg) + if err != nil { + t.Error(test.description, err) + } + + if test.empty { + if len(scannerReport.Leaks) != 0 { + t.Errorf("%s wanted no leaks but got some instead: %+v", test.description, scannerReport.Leaks) + } + continue + } + + if test.wantPath != "" { + err := fileCheck(test.wantPath, test.opts.Report) + if err != nil { + t.Error(test.description, err) + } + } + } +} diff --git a/scan/scan_test.go b/scan/scan_test.go index 4e690115..f98f4085 100644 --- a/scan/scan_test.go +++ b/scan/scan_test.go @@ -1,18 +1,20 @@ -package scan +package scan_test import ( "encoding/json" "fmt" "io/ioutil" "os" - "runtime" + "path/filepath" "testing" "github.com/zricethezav/gitleaks/v7/config" "github.com/zricethezav/gitleaks/v7/options" + "github.com/zricethezav/gitleaks/v7/scan" ) -const testRepoBase = "../test_data/test_repos/" +const repoBasePath = "../testdata/repos/" +const expectPath = "../testdata/expect/" func TestScan(t *testing.T) { err := moveDotGit("dotGit", ".git") @@ -24,719 +26,85 @@ func TestScan(t *testing.T) { description string opts options.Options wantPath string - wantErr error - wantScanErr error - emptyRepo bool - wantEmpty bool }{ { - description: "test local repo one aws leak", + description: "test google api key leak AND square oauth leak", opts: options.Options{ - Path: "../test_data/test_repos/test_repo_1", - Report: "../test_data/test_local_repo_one_aws_leak.json.got", - ReportFormat: "json", - Threads: runtime.GOMAXPROCS(0), - }, - wantPath: "../test_data/test_local_repo_one_aws_leak.json", - }, - { - description: "test local repo one aws leak threaded", - opts: options.Options{ - Threads: runtime.GOMAXPROCS(0), - Path: "../test_data/test_repos/test_repo_1", - Report: "../test_data/test_local_repo_one_aws_leak.json.got", - ReportFormat: "json", - }, - wantPath: "../test_data/test_local_repo_one_aws_leak.json", - }, - { - description: "test non existent repo", - opts: options.Options{ - Path: "../test_data/test_repos/no_repo_here", - ReportFormat: "json", - }, - wantErr: fmt.Errorf("stat ../test_data/test_repos/no_repo_here: no such file or directory"), - emptyRepo: true, - }, - { - description: "test local repo one aws leak allowlisted", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_1", - ReportFormat: "json", - ConfigPath: "../test_data/test_configs/aws_key_allowlist_python_files.toml", - }, - wantEmpty: true, - }, - { - description: "test local repo two leaks", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_2", - Report: "../test_data/test_local_repo_two_leaks.json.got", - ReportFormat: "json", - }, - wantPath: "../test_data/test_local_repo_two_leaks.json", - }, - { - description: "test local repo two leaks from Commit", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_2", - Report: "../test_data/test_local_repo_two_leaks_commit_from.json.got", - ReportFormat: "json", - CommitFrom: "996865bb912f3bc45898a370a13aadb315014b55", - }, - wantPath: "../test_data/test_local_repo_two_leaks_commit_from.json", - }, - { - description: "test local repo two leaks to Commit", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_2", - Report: "../test_data/test_local_repo_two_leaks_commit_to.json.got", - ReportFormat: "json", - CommitTo: "996865bb912f3bc45898a370a13aadb315014b55", - }, - wantPath: "../test_data/test_local_repo_two_leaks_commit_to.json", - }, - { - description: "test local repo two leaks to from Commit", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_2", - Report: "../test_data/test_local_repo_two_leaks_commit_to_from.json.got", - ReportFormat: "json", - CommitFrom: "d8ac0b73aeeb45843319cdc5ce506516eb49bf7a", - CommitTo: "51f6dcf6b89b93f4075ba92c400b075631a6cc93", - }, - wantPath: "../test_data/test_local_repo_two_leaks_commit_to_from.json", - }, - { - description: "test local repo two leaks list Commits", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_2", - Report: "../test_data/test_local_repo_two_leaks_commit_range.json.got", - ReportFormat: "json", - Commits: "d8ac0b73aeeb45843319cdc5ce506516eb49bf7a,996865bb912f3bc45898a370a13aadb315014b55,17471a5fda722a9e423f1a0d3f0d267ea009d41c,51f6dcf6b89b93f4075ba92c400b075631a6cc93,b10b3e2cb320a8c211fda94c4567299d37de7776", - }, - wantPath: "../test_data/test_local_repo_two_leaks_commit_range.json", - }, - { - description: "test local repo two leaks file list commits", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_2", - Report: "../test_data/test_local_repo_two_leaks_file_commit_range.json.got", - ReportFormat: "json", - CommitsFile: "../test_data/test_options/test_local_repo_commits.txt", - Threads: runtime.GOMAXPROCS(0), - }, - wantPath: "../test_data/test_local_repo_two_leaks_file_commit_range.json", - }, - { - description: "test local repo two leaks globally allowlisted", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_2", - ConfigPath: "../test_data/test_configs/aws_key_global_allowlist_file.toml", - ReportFormat: "json", - }, - wantEmpty: true, - }, - { - description: "test local repo two leaks allowlisted", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_2", - ConfigPath: "../test_data/test_configs/aws_key_allowlist_files.toml", - ReportFormat: "json", - }, - wantEmpty: true, - }, - { - description: "test local repo three leaks dev branch with reportGroup set", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_3", - Report: "../test_data/test_local_repo_three_leaks_with_report_groups.json.got", - ConfigPath: "../test_data/test_configs/aws_key_with_report_groups.toml", - Branch: "dev", - ReportFormat: "json", - }, - wantPath: "../test_data/test_local_repo_three_leaks_with_report_groups.json", - }, - { - description: "test local repo three leaks dev branch", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_3", - Report: "../test_data/test_local_repo_three_leaks.json.got", - ConfigPath: "../test_data/test_configs/aws_key.toml", - Branch: "dev", - ReportFormat: "json", - }, - wantPath: "../test_data/test_local_repo_three_leaks.json", - }, - { - description: "test local repo branch does not exist", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_3", - Branch: "nobranch", - ReportFormat: "json", - }, - wantScanErr: fmt.Errorf("could not find branch nobranch"), - }, - { - description: "test local repo one aws leak single Commit", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_1", - Report: "../test_data/test_local_repo_one_aws_leak_commit.json.got", - Commit: "6557c92612d3b35979bd426d429255b3bf9fab74", - ReportFormat: "json", - }, - wantPath: "../test_data/test_local_repo_one_aws_leak_commit.json", - }, - { - description: "test local repo one aws leak AND leak on python files", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_1", - Report: "../test_data/test_local_repo_one_aws_leak_and_file_leak.json.got", - ConfigPath: "../test_data/test_configs/aws_key_file_regex.toml", - ReportFormat: "json", - }, - wantPath: "../test_data/test_local_repo_one_aws_leak_and_file_leak.json", - }, - { - description: "test owner path", - opts: options.Options{ - Path: "../test_data/test_repos/", - Report: "../test_data/test_local_owner_aws_leak.json.got", - ReportFormat: "json", - Threads: runtime.GOMAXPROCS(0), - }, - wantPath: "../test_data/test_local_owner_aws_leak.json", - }, - { - description: "test owner path allowlist repo", - opts: options.Options{ - Path: "../test_data/test_repos/", - Report: "../test_data/test_local_owner_aws_leak_allowlist_repo.json.got", - ReportFormat: "json", - ConfigPath: "../test_data/test_configs/aws_key_local_owner_allowlist_repo.toml", - }, - wantPath: "../test_data/test_local_owner_aws_leak_allowlist_repo.json", - }, - { - description: "test entropy and regex", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_1", - Report: "../test_data/test_regex_entropy.json.got", - ConfigPath: "../test_data/test_configs/regex_entropy.toml", - ReportFormat: "json", - Threads: runtime.GOMAXPROCS(0), - }, - wantPath: "../test_data/test_regex_entropy.json", - }, - { - description: "test local repo four entropy alternative config", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_4", - Report: "../test_data/test_local_repo_four_alt_config_entropy.json.got", - RepoConfigPath: "gitleaks.toml", - ReportFormat: "json", - }, - wantPath: "../test_data/test_local_repo_four_alt_config_entropy.json", - }, - { - description: "test local repo four entropy alternative config", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_1", - Report: "../test_data/test_regex_allowlist.json.got", - ConfigPath: "../test_data/test_configs/aws_key_aws_allowlisted.toml", - ReportFormat: "json", - }, - wantEmpty: true, - }, - { - description: "test owner path depth=2", - opts: options.Options{ - Path: "../test_data/test_repos/", - Report: "../test_data/test_local_owner_aws_leak_depth_2.json.got", - ReportFormat: "json", - Depth: 2, - }, - wantPath: "../test_data/test_local_owner_aws_leak_depth_2.json", - }, - { - description: "test local repo five files at Commit", - opts: options.Options{ - Path: "../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 files at latest Commit", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_5", - Report: "../test_data/test_local_repo_five_files_at_latest_commit.json.got", - FilesAtCommit: "latest", - ReportFormat: "json", - }, - wantPath: "../test_data/test_local_repo_five_files_at_commit.json", - }, - { - description: "test local repo five at Commit", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_5", - Report: "../test_data/test_local_repo_five_commit.json.got", - Commit: "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0", - ReportFormat: "json", - ConfigPath: "../test_data/test_configs/generic.toml", - }, - wantPath: "../test_data/test_local_repo_five_commit.json", - }, - { - description: "test local repo five at latest Commit", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_5", - Report: "../test_data/test_local_repo_five_at_latest_commit.json.got", - Commit: "latest", - ReportFormat: "json", - ConfigPath: "../test_data/test_configs/generic.toml", - }, - wantPath: "../test_data/test_local_repo_five_at_latest_commit.json", - }, - { - description: "test local repo six filename", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_6", - Report: "../test_data/test_local_repo_six_filename.json.got", - ConfigPath: "../test_data/test_configs/regex_filename.toml", - ReportFormat: "json", - }, - wantPath: "../test_data/test_local_repo_six_filename.json", - }, - { - description: "test local repo six filepath", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_6", - Report: "../test_data/test_local_repo_six_filepath.json.got", - ConfigPath: "../test_data/test_configs/regex_filepath.toml", - ReportFormat: "json", - }, - wantPath: "../test_data/test_local_repo_six_filepath.json", - }, - { - description: "test local repo six filename and filepath", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_6", - Report: "../test_data/test_local_repo_six_filepath_filename.json.got", - ConfigPath: "../test_data/test_configs/regex_filepath_filename.toml", - ReportFormat: "json", - }, - wantPath: "../test_data/test_local_repo_six_filepath_filename.json", - }, - { - description: "test local repo six path globally allowlisted", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_6", - Report: "../test_data/test_local_repo_six_path_globally_allowlisted.json.got", - ConfigPath: "../test_data/test_configs/aws_key_global_allowlist_path.toml", - ReportFormat: "json", - }, - wantPath: "../test_data/test_local_repo_six_path_globally_allowlisted.json", - }, - { - description: "test local repo six leaks since date", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_6", - Report: "../test_data/test_local_repo_six_leaks_since_date.json.got", - ReportFormat: "json", - CommitSince: "2019-10-25", - }, - wantPath: "../test_data/test_local_repo_six_leaks_since_date.json", - }, - { - description: "test local repo two leaks until date", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_6", - Report: "../test_data/test_local_repo_six_leaks_until_date.json.got", - ReportFormat: "json", - CommitUntil: "2019-10-25", - }, - wantPath: "../test_data/test_local_repo_six_leaks_until_date.json", - }, - { - description: "test local repo four leaks timerange Commit", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_4", - Report: "../test_data/test_local_repo_four_leaks_commit_timerange.json.got", - ReportFormat: "json", - CommitSince: "2019-10-25T13:01:27-0400", - CommitUntil: "2019-10-25T13:12:32-0400", - }, - wantPath: "../test_data/test_local_repo_four_leaks_commit_timerange.json", - }, - { - description: "test local repo two allowlist Commit config", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_2", - Report: "../test_data/test_local_repo_two_allowlist_commits.json.got", - ConfigPath: "../test_data/test_configs/allowlist_commit.toml", - ReportFormat: "json", - }, - wantPath: "../test_data/test_local_repo_two_allowlist_commits.json", - }, - { - description: "test local repo eight (merges)", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_8", - Report: "../test_data/test_local_repo_eight.json.got", - ReportFormat: "json", - }, - wantPath: "../test_data/test_local_repo_eight.json", - }, - { - description: "test local repo nine", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_9", - Report: "../test_data/test_local_repo_nine_aws_leak.json.got", - ConfigPath: "../test_data/test_configs/large_with_global_allowlist_regex.toml", - ReportFormat: "json", - }, - wantPath: "../test_data/test_local_repo_nine_aws_leak.json", - }, - { - description: "test dir one no git", - opts: options.Options{ - Path: "../test_data/test_repos/test_dir_1", - Report: "../test_data/test_dir1_aws_leak.json.got", - ReportFormat: "json", - NoGit: true, - }, - wantPath: "../test_data/test_dir1_aws_leak.json", - }, - { - description: "test file with leak no git", - opts: options.Options{ - Path: "../test_data/test_repos/test_dir_1/server.test.py", - Report: "../test_data/test_file1_aws_leak.json.got", - ReportFormat: "json", - NoGit: true, - }, - wantPath: "../test_data/test_file1_aws_leak.json", - }, - { - description: "test only md files no git", - opts: options.Options{ - Path: "../test_data/test_repos/", - Report: "../test_data/test_only_files_no_git.json.got", - ReportFormat: "json", - ConfigPath: "../test_data/test_configs/onlyFiles.toml", - NoGit: true, - }, - wantPath: "../test_data/test_only_files_no_git.json", - }, - { - description: "test allowlist files", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_10", - Report: "../test_data/test_allow_list_file.json.got", - ReportFormat: "json", - ConfigPath: "../test_data/test_configs/allowlist_files.toml", - }, - wantPath: "../test_data/test_allow_list_file.json", - }, - { - description: "test allowlist files", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_10", - Report: "../test_data/test_allow_list_file.json.got", - ReportFormat: "json", - ConfigPath: "../test_data/test_configs/allowlist_files.toml", - }, - wantPath: "../test_data/test_allow_list_file.json", - }, - { - description: "test allowlist files no-git", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_10", - Report: "../test_data/test_allow_list_file_no_git.json.got", - ReportFormat: "json", - ConfigPath: "../test_data/test_configs/allowlist_files.toml", - NoGit: true, - }, - wantPath: "../test_data/test_allow_list_file_no_git.json", - }, - { - description: "test allowlist docx no-git", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_10", - Report: "../test_data/test_allow_list_docx_no_git.json.got", - ReportFormat: "json", - ConfigPath: "../test_data/test_configs/allowlist_docx.toml", - NoGit: true, - }, - wantPath: "../test_data/test_allow_list_docx_no_git.json", - }, - { - description: "test append repo config", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_10", - Report: "../test_data/test_append_repo.json.got", - ReportFormat: "json", - ConfigPath: "../test_data/test_configs/nozips.toml", - RepoConfigPath: ".gitleaks.toml", - AppendRepoConfig: true, - }, - wantPath: "../test_data/test_append_repo.json", - }, - { - description: "test additional config", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_10", - Report: "../test_data/test_additional_config.json.got", - ReportFormat: "json", - ConfigPath: "../test_data/test_configs/nozips.toml", - AdditionalConfig: "../test_data/test_repos/test_repo_10/.gitleaks.toml", - }, - wantPath: "../test_data/test_additional_config.json", - }, - { - description: "test append repo config with additional config", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_10", - Report: "../test_data/test_append_repo_additional_config.json.got", - ReportFormat: "json", - ConfigPath: "../test_data/test_configs/nozips.toml", - RepoConfigPath: ".gitleaks.toml", - AppendRepoConfig: true, - AdditionalConfig: "../test_data/test_configs/allowlist_bad_docx_10.toml", - }, - wantEmpty: true, - }, - { - description: "test append repo config with additional config", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_10", - Report: "../test_data/test_append_repo_additional_config.json.got", - ReportFormat: "json", - ConfigPath: "../test_data/test_configs/nozips.toml", - RepoConfigPath: ".gitleaks.toml", - AppendRepoConfig: true, - AdditionalConfig: "../test_data/test_configs/allowlist_bad_docx_10.toml", - }, - wantEmpty: true, - }, - { - description: "test file with no leak due to additional config no git", - opts: options.Options{ - Path: "../test_data/test_repos/test_dir_1", - Report: "../test_data/fail.json.got", - ReportFormat: "json", - NoGit: false, - AdditionalConfig: "../test_data/test_configs/allowlist_allow_all_repo_1.toml", - }, - wantEmpty: true, - }, - { - description: "test dir two google api key leak AND square oauth leak", - opts: options.Options{ - Path: "../test_data/test_repos/test_dir_2", - Report: "../test_data/test_dir_one_google_leak_and_square_leak.json.got", + Path: filepath.Join(repoBasePath, "with_square_and_google"), + Report: filepath.Join(expectPath, "results_square_and_google.json.got"), ReportFormat: "json", NoGit: true, }, - wantPath: "../test_data/test_dir_one_google_leak_and_square_leak.json", + wantPath: filepath.Join(expectPath, "results_square_and_google.json"), }, } for _, test := range tests { - fmt.Println(test.description) cfg, err := config.NewConfig(test.opts) if err != nil { t.Error(err) } - scanner, err := NewScanner(test.opts, cfg) - if test.wantErr != nil { - if err == nil { - t.Fatalf("did not receive wantErr: %v", test.wantErr) - } - if err.Error() != test.wantErr.Error() { - t.Fatalf("wantErr does not equal err received: %v", err.Error()) - } - continue - } + scanner, err := scan.NewScanner(test.opts, cfg) if err != nil { - t.Fatal(err) + t.Error(test.description, err) } scannerReport, err := scanner.Scan() - - if test.wantScanErr != nil { - if err == nil { - t.Fatalf("did not receive wantErr: %v", test.wantScanErr) - } - if err.Error() != test.wantScanErr.Error() { - t.Fatalf("wantErr does not equal err received: %v", err.Error()) - } - continue - } if err != nil { - t.Fatal(err) + t.Fatal(test.description, err) } - err = WriteReport(scannerReport, test.opts, cfg) + err = scan.WriteReport(scannerReport, test.opts, cfg) if err != nil { - t.Error(err) - } - - if test.wantEmpty { - if len(scannerReport.Leaks) != 0 { - t.Errorf("wanted no leaks but got some instead: %+v", scannerReport.Leaks) - } - continue + t.Error(test.description, err) } if test.wantPath != "" { err := fileCheck(test.wantPath, test.opts.Report) if err != nil { - t.Error(err) + t.Error(test.description, err) } } } } -// -func TestScanUncommited(t *testing.T) { - moveDotGit("dotGit", ".git") - defer moveDotGit(".git", "dotGit") - tests := []struct { - description string - opts options.Options - wantPath string - wantErr error - wantScanErr error - emptyRepo bool - wantEmpty bool - fileToChange string - addition string - }{ - { - description: "test scan local one leak", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_1", - Report: "../test_data/test_local_repo_one_aws_leak_uncommitted.json.got", - Unstaged: true, - ReportFormat: "json", - }, - wantPath: "../test_data/test_local_repo_one_aws_leak_uncommitted.json", - fileToChange: "server.test.py", - addition: " aws_access_key_id='AKIAIO5FODNN7DXAMPLE'\n\n", - }, - { - description: "test scan local no leak", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_1", - Unstaged: true, - ReportFormat: "json", - }, - wantEmpty: true, - fileToChange: "server.test.py", - addition: "nothing bad", - }, - { - description: "test scan repo with no commits", - opts: options.Options{ - Path: "../test_data/test_repos/test_repo_7", - Report: "../test_data/test_local_repo_seven_aws_leak_uncommitted.json.got", - Unstaged: true, - ReportFormat: "json", - }, - wantPath: "../test_data/test_local_repo_seven_aws_leak_uncommitted.json", - }, + +func moveDotGit(from, to string) error { + repoDirs, err := ioutil.ReadDir("../testdata/repos") + if err != nil { + return err } - for _, test := range tests { - var ( - old []byte - err error - ) - fmt.Println(test.description) - if test.fileToChange != "" { - old, err = ioutil.ReadFile(fmt.Sprintf("%s/%s", test.opts.Path, test.fileToChange)) - if err != nil { - t.Error(err) + for _, dir := range repoDirs { + if to == ".git" { + _, err := os.Stat(fmt.Sprintf("%s/%s/%s", repoBasePath, dir.Name(), "dotGit")) + if os.IsNotExist(err) { + // dont want to delete the only copy of .git accidentally + continue } - altered, err := os.OpenFile(fmt.Sprintf("%s/%s", test.opts.Path, test.fileToChange), - os.O_WRONLY|os.O_APPEND, 0644) - if err != nil { - t.Error(err) - } - - _, err = altered.WriteString(test.addition) - if err != nil { - t.Error(err) - } - + os.RemoveAll(fmt.Sprintf("%s/%s/%s", repoBasePath, dir.Name(), ".git")) } - - cfg, err := config.NewConfig(test.opts) - if err != nil { - t.Error(err) - } - scanner, err := NewScanner(test.opts, cfg) - if test.wantErr != nil { - if err == nil { - t.Fatalf("did not receive wantErr: %v", test.wantErr) - } - if err.Error() != test.wantErr.Error() { - t.Fatalf("wantErr does not equal err received: %v", err.Error()) - } + if !dir.IsDir() { continue } - if err != nil { - t.Fatal(err) - } - - scannerReport, err := scanner.Scan() - - if test.wantScanErr != nil { - if err == nil { - t.Fatalf("did not receive wantErr: %v", test.wantScanErr) - } - if err.Error() != test.wantScanErr.Error() { - t.Fatalf("wantErr does not equal err received: %v", err.Error()) - } - continue - } - if err != nil { - t.Fatal(err) - } - - err = WriteReport(scannerReport, test.opts, cfg) - if err != nil { - t.Error(err) - } - - if test.fileToChange != "" { - err = ioutil.WriteFile(fmt.Sprintf("%s/%s", test.opts.Path, test.fileToChange), old, 0) - if err != nil { - t.Error(err) - } - } - - if test.wantEmpty { + _, err := os.Stat(fmt.Sprintf("%s/%s/%s", repoBasePath, dir.Name(), from)) + if os.IsNotExist(err) { continue } - if test.wantPath != "" { - err := fileCheck(test.wantPath, test.opts.Report) - if err != nil { - t.Error(err) - } + err = os.Rename(fmt.Sprintf("%s/%s/%s", repoBasePath, dir.Name(), from), + fmt.Sprintf("%s/%s/%s", repoBasePath, dir.Name(), to)) + if err != nil { + return err } } + return nil } func fileCheck(wantPath, gotPath string) error { var ( - gotLeaks []Leak - wantLeaks []Leak + gotLeaks []scan.Leak + wantLeaks []scan.Leak ) want, err := ioutil.ReadFile(wantPath) if err != nil { @@ -780,7 +148,7 @@ func fileCheck(wantPath, gotPath string) error { return nil } -func same(l1, l2 Leak) bool { +func same(l1, l2 scan.Leak) bool { if l1.Commit != l2.Commit { return false } @@ -823,35 +191,3 @@ func same(l1, l2 Leak) bool { return true } - -func moveDotGit(from, to string) error { - repoDirs, err := ioutil.ReadDir("../test_data/test_repos") - if err != nil { - return err - } - for _, dir := range repoDirs { - if to == ".git" { - _, err := os.Stat(fmt.Sprintf("%s/%s/%s", testRepoBase, dir.Name(), "dotGit")) - if os.IsNotExist(err) { - // dont want to delete the only copy of .git accidentally - continue - } - os.RemoveAll(fmt.Sprintf("%s/%s/%s", testRepoBase, dir.Name(), ".git")) - } - if !dir.IsDir() { - continue - } - _, err := os.Stat(fmt.Sprintf("%s/%s/%s", testRepoBase, dir.Name(), from)) - if os.IsNotExist(err) { - continue - } - - err = os.Rename(fmt.Sprintf("%s/%s/%s", testRepoBase, dir.Name(), from), - fmt.Sprintf("%s/%s/%s", testRepoBase, dir.Name(), to)) - if err != nil { - return err - } - // fmt.Println("RENAMED") - } - return nil -} diff --git a/scan/unstaged_test.go b/scan/unstaged_test.go new file mode 100644 index 00000000..3dd35172 --- /dev/null +++ b/scan/unstaged_test.go @@ -0,0 +1,111 @@ +package scan_test + +import ( + "io/ioutil" + "os" + "path/filepath" + "testing" + + "github.com/zricethezav/gitleaks/v7/config" + "github.com/zricethezav/gitleaks/v7/options" + "github.com/zricethezav/gitleaks/v7/scan" +) + +func TestUnstaged(t *testing.T) { + err := moveDotGit("dotGit", ".git") + if err != nil { + t.Fatal(err) + } + defer moveDotGit(".git", "dotGit") + tests := []struct { + description string + opts options.Options + wantPath string + fileToChange string + change string + empty bool + }{ + { + description: "basic repo with unstagged change containing a secret", + opts: options.Options{ + Path: filepath.Join(repoBasePath, "basic"), + Report: filepath.Join(expectPath, "basic", "results_unstaged.json.got"), + ReportFormat: "json", + Unstaged: true, + }, + wantPath: filepath.Join(expectPath, "basic", "results_unstaged.json"), + fileToChange: filepath.Join(repoBasePath, "basic", "secrets.py"), + change: "\nadded_aws_access_key_id='AKIAIO5FODNN7DXAMPLE'\n", + }, + { + description: "basic repo with unstagged change not containing a secret", + opts: options.Options{ + Path: filepath.Join(repoBasePath, "basic"), + Report: filepath.Join(expectPath, "basic", "results_unstaged.json.got"), + ReportFormat: "json", + Unstaged: true, + }, + empty: true, + fileToChange: filepath.Join(repoBasePath, "basic", "secrets.py"), + change: "\nnice_variable='is_nice''\n", + }, + } + + for _, test := range tests { + var old []byte + if test.fileToChange != "" { + old, err = ioutil.ReadFile(test.fileToChange) + if err != nil { + t.Error(err) + } + altered, err := os.OpenFile(test.fileToChange, + os.O_WRONLY|os.O_APPEND, 0644) + if err != nil { + t.Error(err) + } + + _, err = altered.WriteString(test.change) + if err != nil { + t.Error(err) + } + } + + cfg, err := config.NewConfig(test.opts) + if err != nil { + t.Error(err) + } + + scanner, err := scan.NewScanner(test.opts, cfg) + if err != nil { + t.Fatal(test.description, err) + } + + scannerReport, err := scanner.Scan() + if err != nil { + t.Fatal(test.description, err) + } + + err = scan.WriteReport(scannerReport, test.opts, cfg) + if err != nil { + t.Error(test.description, err) + } + + if test.empty { + if len(scannerReport.Leaks) != 0 { + t.Errorf("%s wanted no leaks but got some instead: %+v", test.description, scannerReport.Leaks) + } + } + + if test.wantPath != "" { + err := fileCheck(test.wantPath, test.opts.Report) + if err != nil { + t.Error(test.description, err) + } + } + err = ioutil.WriteFile(test.fileToChange, old, 0) + if err != nil { + t.Error(err) + } + + } +} diff --git a/test_data/test_additional_config.json b/test_data/test_additional_config.json deleted file mode 100644 index f0951da1..00000000 --- a/test_data/test_additional_config.json +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: tmp/bad.docx", - "offenderEntropy": -1, - "commit": "b0f9b62dfe12e4e10de180359c6b9276472494f8", - "repo": "test_repo_10", - "repoURL": "", - "leakURL": "", - "rule": "Block dangerous filetypes", - "commitMessage": "Create bad.docx", - "author": "Zachary Rice", - "email": "zricer@protonmail.com", - "file": "tmp/bad.docx", - "date": "2020-12-09T11:02:10-05:00", - "tags": "key, extensions" - } -] diff --git a/test_data/test_allow_list_docx_no_git.json b/test_data/test_allow_list_docx_no_git.json deleted file mode 100644 index cf2ff1a7..00000000 --- a/test_data/test_allow_list_docx_no_git.json +++ /dev/null @@ -1,87 +0,0 @@ -[ - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: ../test_data/test_repos/test_repo_10/.gitignore", - "offenderEntropy": -1, - "commit": "", - "repo": "", - "repoURL": "", - "leakURL": "", - "rule": "Block dangerous filetypes", - "commitMessage": "", - "author": "", - "email": "", - "file": "../test_data/test_repos/test_repo_10/.gitignore", - "date": "0001-01-01T00:00:00Z", - "tags": "key, extensions" - }, - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: ../test_data/test_repos/test_repo_10/bad.zip", - "offenderEntropy": -1, - "commit": "", - "repo": "", - "repoURL": "", - "leakURL": "", - "rule": "Block dangerous filetypes", - "commitMessage": "", - "author": "", - "email": "", - "file": "../test_data/test_repos/test_repo_10/bad.zip", - "date": "0001-01-01T00:00:00Z", - "tags": "key, extensions" - }, - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: ../test_data/test_repos/test_repo_10/gitfile.txt", - "offenderEntropy": -1, - "commit": "", - "repo": "", - "repoURL": "", - "leakURL": "", - "rule": "Block dangerous filetypes", - "commitMessage": "", - "author": "", - "email": "", - "file": "../test_data/test_repos/test_repo_10/gitfile.txt", - "date": "0001-01-01T00:00:00Z", - "tags": "key, extensions" - }, - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: ../test_data/test_repos/test_repo_10/creds.git", - "offenderEntropy": -1, - "commit": "", - "repo": "", - "repoURL": "", - "leakURL": "", - "rule": "Block dangerous filetypes", - "commitMessage": "", - "author": "", - "email": "", - "file": "../test_data/test_repos/test_repo_10/creds.git", - "date": "0001-01-01T00:00:00Z", - "tags": "key, extensions" - }, - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: ../test_data/test_repos/test_repo_10/somedir.git/secret.key", - "offenderEntropy": -1, - "commit": "", - "repo": "", - "repoURL": "", - "leakURL": "", - "rule": "Block dangerous filetypes", - "commitMessage": "", - "author": "", - "email": "", - "file": "../test_data/test_repos/test_repo_10/somedir.git/secret.key", - "date": "0001-01-01T00:00:00Z", - "tags": "key, extensions" - } -] diff --git a/test_data/test_allow_list_file.json b/test_data/test_allow_list_file.json deleted file mode 100644 index f0951da1..00000000 --- a/test_data/test_allow_list_file.json +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: tmp/bad.docx", - "offenderEntropy": -1, - "commit": "b0f9b62dfe12e4e10de180359c6b9276472494f8", - "repo": "test_repo_10", - "repoURL": "", - "leakURL": "", - "rule": "Block dangerous filetypes", - "commitMessage": "Create bad.docx", - "author": "Zachary Rice", - "email": "zricer@protonmail.com", - "file": "tmp/bad.docx", - "date": "2020-12-09T11:02:10-05:00", - "tags": "key, extensions" - } -] diff --git a/test_data/test_allow_list_file_no_git.json b/test_data/test_allow_list_file_no_git.json deleted file mode 100644 index fa6b7131..00000000 --- a/test_data/test_allow_list_file_no_git.json +++ /dev/null @@ -1,36 +0,0 @@ -[ -{ - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: ../test_data/test_repos/test_repo_10/somedir.git/secret.key", - "offenderEntropy": -1, - "commit": "", - "repo": "", - "repoURL": "", - "leakURL": "", - "rule": "Block dangerous filetypes", - "commitMessage": "", - "author": "", - "email": "", - "file": "../test_data/test_repos/test_repo_10/somedir.git/secret.key", - "date": "0001-01-01T00:00:00Z", - "tags": "key, extensions" - }, - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: ../test_data/test_repos/test_repo_10/tmp/bad.docx", - "offenderEntropy": -1, - "commit": "", - "repo": "", - "repoURL": "", - "leakURL": "", - "rule": "Block dangerous filetypes", - "commitMessage": "", - "author": "", - "email": "", - "file": "../test_data/test_repos/test_repo_10/tmp/bad.docx", - "date": "0001-01-01T00:00:00Z", - "tags": "key, extensions" - } -] diff --git a/test_data/test_append_repo.json b/test_data/test_append_repo.json deleted file mode 100644 index f0951da1..00000000 --- a/test_data/test_append_repo.json +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: tmp/bad.docx", - "offenderEntropy": -1, - "commit": "b0f9b62dfe12e4e10de180359c6b9276472494f8", - "repo": "test_repo_10", - "repoURL": "", - "leakURL": "", - "rule": "Block dangerous filetypes", - "commitMessage": "Create bad.docx", - "author": "Zachary Rice", - "email": "zricer@protonmail.com", - "file": "tmp/bad.docx", - "date": "2020-12-09T11:02:10-05:00", - "tags": "key, extensions" - } -] diff --git a/test_data/test_entropy.json b/test_data/test_entropy.json deleted file mode 100644 index 3a2a156d..00000000 --- a/test_data/test_entropy.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "offender": "Entropy range [{P1:4.5 P2:4.7} {P1:5.5 P2:6.3}]", - "offenderEntropy": -1, - "commit": "6557c92612d3b35979bd426d429255b3bf9fab74", - "repo": "test_repo_1", - "rule": "entropy", - "commitMessage": "commit 1 with secrets\n", - "author": "zach rice", - "email": "zricer@protonmail.com", - "file": "server.test.py", - "date": "2019-10-24T09:29:27-04:00", - "tags": "entropy" - } -] diff --git a/test_data/test_file1_aws_leak.json b/test_data/test_file1_aws_leak.json deleted file mode 100644 index 62ad8981..00000000 --- a/test_data/test_file1_aws_leak.json +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 5, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "", - "repo": "", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "", - "author": "", - "email": "", - "file": "../test_data/test_repos/test_dir_1/server.test.py", - "date": "0001-01-01T00:00:00Z", - "tags": "key, AWS" - } -] diff --git a/test_data/test_local_owner_aws_leak.json b/test_data/test_local_owner_aws_leak.json deleted file mode 100644 index 304c6a2c..00000000 --- a/test_data/test_local_owner_aws_leak.json +++ /dev/null @@ -1,393 +0,0 @@ -[ - { - "line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 5, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "6557c92612d3b35979bd426d429255b3bf9fab74", - "repo": "test_repos", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "commit 1 with secrets\n", - "author": "zach rice", - "email": "zricer@protonmail.com", - "file": "server.test.py", - "date": "2019-10-24T09:29:27-04:00", - "tags": "key, AWS" - }, - { - "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", - "lineNumber": 4, - "offender": "AKIALALEMEL33243OLIB", - "offenderEntropy": -1, - "commit": "b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: AKIALALEMEL33243OLIAE", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "b10b3e2cb320a8c211fda94c4567299d37de7776", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 5, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "deea550dd6c7acaf0e59432600593533984a2125", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "const AWSKEY = \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "84ac4e80d4dbf2c968b64e9d4005f5079795bb81", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: AKIALALEMEL33243OLIAE", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "b10b3e2cb320a8c211fda94c4567299d37de7776", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", - "lineNumber": 4, - "offender": "AKIALALEMEL33243OLIB", - "offenderEntropy": -1, - "commit": "b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 5, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "deea550dd6c7acaf0e59432600593533984a2125", - "repo": "test_repo_4", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "const AWSKEY = \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "84ac4e80d4dbf2c968b64e9d4005f5079795bb81", - "repo": "test_repo_4", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: AKIALALEMEL33243OLIAE", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "b10b3e2cb320a8c211fda94c4567299d37de7776", - "repo": "test_repo_4", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", - "lineNumber": 4, - "offender": "AKIALALEMEL33243OLIB", - "offenderEntropy": -1, - "commit": "b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba", - "repo": "test_repo_4", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", - "repo": "test_repo_4", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPLE'", - "lineNumber": 1, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "1f2a4abc47dabf991e6af6f9770867ce0ac1f360", - "repo": "test_repo_5", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPL2'", - "lineNumber": 4, - "offender": "AKIAIO5FODNN7EXAMPL2", - "offenderEntropy": -1, - "commit": "ca71fcdeda15f25f0cc661d90e8785c255925c27", - "repo": "test_repo_5", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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',", - "lineNumber": 5, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "6557c92612d3b35979bd426d429255b3bf9fab74", - "repo": "test_repos", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "commit 1 with secrets\n", - "author": "zach rice", - "email": "zricer@protonmail.com", - "file": "server.test.py", - "date": "2019-10-24T09:29:27-04:00", - "tags": "key, AWS" - }, - { - "line": "aws_access_key_id=AKIAIO5FODNN7EXAMPLE", - "lineNumber": 3, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "98b6c7cb3fb29a5993c4c95c56a2dc53050b9247", - "repo": "test_repo_6", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "Adding some secrets in config folder\n\n", - "author": "Noel Algora", - "email": "noealgigu@gmail.com", - "file": "config/application.properties", - "date": "2020-02-24T14:13:15-05:00", - "tags": "key, AWS" - }, - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 2, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "ce7e8177bbf8a172c06b6a1e370a374d5c19f660", - "repo": "test_repo_8", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "dummy.txt w/ text", - "author": "Zachary Rice", - "email": "zricer@protonmail.com", - "file": "dummy.txt", - "date": "2020-07-25T14:39:11-04:00", - "tags": "key, AWS" - }, - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 6, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "9267bc86ec1497471cbc6f3308f3527f7ef34b9d", - "repo": "test_repo_8", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "Update dummy.txt", - "author": "Zachary Rice", - "email": "zricer@protonmail.com", - "file": "dummy.txt", - "date": "2020-07-25T14:41:11-04:00", - "tags": "key, AWS" - }, - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 6, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "748f11eaf2c38c3cf0ac6a22e44208777e79fa6f", - "repo": "test_repo_8", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "Merge pull request #1 from zricethezav/additional-secret-branch\n\nUpdate dummy.txt", - "author": "Zachary Rice", - "email": "zricer@protonmail.com", - "file": "dummy.txt", - "date": "2020-07-25T14:44:48-04:00", - "tags": "key, AWS" - }, - { - "line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE', #gitleaks:allow", - "lineNumber": 5, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "8d1fb60d2d80f0590f191ed5ace1e45ef780909a", - "repo": "test_repo_9", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "gitleaks allow secret\n", - "author": "Zach Rice", - "email": "zrice@gitlab.com", - "file": "server.test.py", - "date": "2020-08-12T13:36:20-04:00", - "tags": "key, AWS" - }, - { - "line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 5, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "6557c92612d3b35979bd426d429255b3bf9fab74", - "repo": "test_repos", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "commit 1 with secrets\n", - "author": "zach rice", - "email": "zricer@protonmail.com", - "file": "server.test.py", - "date": "2019-10-24T09:29:27-04:00", - "tags": "key, AWS" - } -] diff --git a/test_data/test_local_owner_aws_leak_allowlist_repo.json b/test_data/test_local_owner_aws_leak_allowlist_repo.json deleted file mode 100644 index 2db57a3a..00000000 --- a/test_data/test_local_owner_aws_leak_allowlist_repo.json +++ /dev/null @@ -1,376 +0,0 @@ -[ - { - "line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", - "lineNumber": 4, - "offender": "AKIALALEMEL33243OLIB", - "offenderEntropy": -1, - "commit": "b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: AKIALALEMEL33243OLIAE", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "b10b3e2cb320a8c211fda94c4567299d37de7776", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "const AWSKEY = \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "84ac4e80d4dbf2c968b64e9d4005f5079795bb81", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 5, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "deea550dd6c7acaf0e59432600593533984a2125", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", - "lineNumber": 4, - "offender": "AKIALALEMEL33243OLIB", - "offenderEntropy": -1, - "commit": "b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: AKIALALEMEL33243OLIAE", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "b10b3e2cb320a8c211fda94c4567299d37de7776", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "const AWSKEY = \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "84ac4e80d4dbf2c968b64e9d4005f5079795bb81", - "repo": "test_repo_4", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 5, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "deea550dd6c7acaf0e59432600593533984a2125", - "repo": "test_repo_4", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", - "lineNumber": 4, - "offender": "AKIALALEMEL33243OLIB", - "offenderEntropy": -1, - "commit": "b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba", - "repo": "test_repo_4", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", - "repo": "test_repo_4", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: AKIALALEMEL33243OLIAE", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "b10b3e2cb320a8c211fda94c4567299d37de7776", - "repo": "test_repo_4", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPL2'", - "lineNumber": 4, - "offender": "AKIAIO5FODNN7EXAMPL2", - "offenderEntropy": -1, - "commit": "ca71fcdeda15f25f0cc661d90e8785c255925c27", - "repo": "test_repo_5", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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'", - "lineNumber": 1, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "1f2a4abc47dabf991e6af6f9770867ce0ac1f360", - "repo": "test_repo_5", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "aws_access_key_id=AKIAIO5FODNN7EXAMPLE", - "lineNumber": 3, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "98b6c7cb3fb29a5993c4c95c56a2dc53050b9247", - "repo": "test_repo_6", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "Adding some secrets in config folder\n\n", - "author": "Noel Algora", - "email": "noealgigu@gmail.com", - "file": "config/application.properties", - "date": "2020-02-24T14:13:15-05:00", - "tags": "key, AWS" - }, - { - "line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 5, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "6557c92612d3b35979bd426d429255b3bf9fab74", - "repo": "test_repos", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "commit 1 with secrets\n", - "author": "zach rice", - "email": "zricer@protonmail.com", - "file": "server.test.py", - "date": "2019-10-24T09:29:27-04:00", - "tags": "key, AWS" - }, - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 6, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "748f11eaf2c38c3cf0ac6a22e44208777e79fa6f", - "repo": "test_repo_8", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "Merge pull request #1 from zricethezav/additional-secret-branch\n\nUpdate dummy.txt", - "author": "Zachary Rice", - "email": "zricer@protonmail.com", - "file": "dummy.txt", - "date": "2020-07-25T14:44:48-04:00", - "tags": "key, AWS" - }, - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 2, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "ce7e8177bbf8a172c06b6a1e370a374d5c19f660", - "repo": "test_repo_8", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "dummy.txt w/ text", - "author": "Zachary Rice", - "email": "zricer@protonmail.com", - "file": "dummy.txt", - "date": "2020-07-25T14:39:11-04:00", - "tags": "key, AWS" - }, - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 6, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "9267bc86ec1497471cbc6f3308f3527f7ef34b9d", - "repo": "test_repo_8", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "Update dummy.txt", - "author": "Zachary Rice", - "email": "zricer@protonmail.com", - "file": "dummy.txt", - "date": "2020-07-25T14:41:11-04:00", - "tags": "key, AWS" - }, - { - "line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE', #gitleaks:allow", - "lineNumber": 5, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "8d1fb60d2d80f0590f191ed5ace1e45ef780909a", - "repo": "test_repo_9", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "gitleaks allow secret\n", - "author": "Zach Rice", - "email": "zrice@gitlab.com", - "file": "server.test.py", - "date": "2020-08-12T13:36:20-04:00", - "tags": "key, AWS" - }, - { - "line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 5, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "6557c92612d3b35979bd426d429255b3bf9fab74", - "repo": "test_repos", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "commit 1 with secrets\n", - "author": "zach rice", - "email": "zricer@protonmail.com", - "file": "server.test.py", - "date": "2019-10-24T09:29:27-04: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 deleted file mode 100644 index 27c5afd5..00000000 --- a/test_data/test_local_owner_aws_leak_depth_2.json +++ /dev/null @@ -1,121 +0,0 @@ -[ - { - "line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 5, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "6557c92612d3b35979bd426d429255b3bf9fab74", - "repo": "test_repos", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "commit 1 with secrets\n", - "author": "zach rice", - "email": "zricer@protonmail.com", - "file": "server.test.py", - "date": "2019-10-24T09:29:27-04:00", - "tags": "key, AWS" - }, - { - "line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", - "lineNumber": 4, - "offender": "AKIALALEMEL33243OLIB", - "offenderEntropy": -1, - "commit": "b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "const AWSKEY = \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "84ac4e80d4dbf2c968b64e9d4005f5079795bb81", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPL2'", - "lineNumber": 4, - "offender": "AKIAIO5FODNN7EXAMPL2", - "offenderEntropy": -1, - "commit": "ca71fcdeda15f25f0cc661d90e8785c255925c27", - "repo": "test_repo_5", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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", - "lineNumber": 3, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "98b6c7cb3fb29a5993c4c95c56a2dc53050b9247", - "repo": "test_repo_6", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "Adding some secrets in config folder\n\n", - "author": "Noel Algora", - "email": "noealgigu@gmail.com", - "file": "config/application.properties", - "date": "2020-02-24T14:13:15-05:00", - "tags": "key, AWS" - }, - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 6, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "748f11eaf2c38c3cf0ac6a22e44208777e79fa6f", - "repo": "test_repo_8", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "Merge pull request #1 from zricethezav/additional-secret-branch\n\nUpdate dummy.txt", - "author": "Zachary Rice", - "email": "zricer@protonmail.com", - "file": "dummy.txt", - "date": "2020-07-25T14:44:48-04:00", - "tags": "key, AWS" - }, - { - "line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE', #gitleaks:allow", - "lineNumber": 5, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "8d1fb60d2d80f0590f191ed5ace1e45ef780909a", - "repo": "test_repo_9", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "gitleaks allow secret\n", - "author": "Zach Rice", - "email": "zrice@gitlab.com", - "file": "server.test.py", - "date": "2020-08-12T13:36:20-04:00", - "tags": "key, AWS" - } -] diff --git a/test_data/test_local_repo_eight.json b/test_data/test_local_repo_eight.json deleted file mode 100644 index 8b2b7d81..00000000 --- a/test_data/test_local_repo_eight.json +++ /dev/null @@ -1,53 +0,0 @@ -[ - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 6, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "748f11eaf2c38c3cf0ac6a22e44208777e79fa6f", - "repo": "test_repo_8", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "Merge pull request #1 from zricethezav/additional-secret-branch\n\nUpdate dummy.txt", - "author": "Zachary Rice", - "email": "zricer@protonmail.com", - "file": "dummy.txt", - "date": "2020-07-25T14:44:48-04:00", - "tags": "key, AWS" - }, - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 2, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "ce7e8177bbf8a172c06b6a1e370a374d5c19f660", - "repo": "test_repo_8", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "dummy.txt w/ text", - "author": "Zachary Rice", - "email": "zricer@protonmail.com", - "file": "dummy.txt", - "date": "2020-07-25T14:39:11-04:00", - "tags": "key, AWS" - }, - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 6, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "9267bc86ec1497471cbc6f3308f3527f7ef34b9d", - "repo": "test_repo_8", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "Update dummy.txt", - "author": "Zachary Rice", - "email": "zricer@protonmail.com", - "file": "dummy.txt", - "date": "2020-07-25T14:41:11-04:00", - "tags": "key, AWS" - } -] diff --git a/test_data/test_local_repo_five_at_latest_commit.json b/test_data/test_local_repo_five_at_latest_commit.json deleted file mode 100644 index b8ffac13..00000000 --- a/test_data/test_local_repo_five_at_latest_commit.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "line": "more_secrets = '99432bfewaf823ec3294e231'", - "lineNumber": 7, - "offender": "secrets = '99432bfewaf823ec3294e231", - "offenderEntropy": -1, - "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", - "operation": "addition" - } -] diff --git a/test_data/test_local_repo_five_commit.json b/test_data/test_local_repo_five_commit.json deleted file mode 100644 index b8ffac13..00000000 --- a/test_data/test_local_repo_five_commit.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "line": "more_secrets = '99432bfewaf823ec3294e231'", - "lineNumber": 7, - "offender": "secrets = '99432bfewaf823ec3294e231", - "offenderEntropy": -1, - "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", - "operation": "addition" - } -] diff --git a/test_data/test_local_repo_five_files_at_commit.json b/test_data/test_local_repo_five_files_at_commit.json deleted file mode 100644 index 1ff20dc4..00000000 --- a/test_data/test_local_repo_five_files_at_commit.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPLE'", - "lineNumber": 1, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0", - "repo": "test_repo_5", - "rule": "AWS Access Key", - "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", - "operation": "addition" - }, - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPL2'", - "lineNumber": 4, - "offender": "AKIAIO5FODNN7EXAMPL2", - "offenderEntropy": -1, - "commit": "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0", - "repo": "test_repo_5", - "rule": "AWS Access Key", - "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", - "operation": "addition" - } -] diff --git a/test_data/test_local_repo_five_files_at_latest_commit.json b/test_data/test_local_repo_five_files_at_latest_commit.json deleted file mode 100644 index 1ff20dc4..00000000 --- a/test_data/test_local_repo_five_files_at_latest_commit.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPLE'", - "lineNumber": 1, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0", - "repo": "test_repo_5", - "rule": "AWS Access Key", - "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", - "operation": "addition" - }, - { - "line": "aws_access_key_id='AKIAIO5FODNN7EXAMPL2'", - "lineNumber": 4, - "offender": "AKIAIO5FODNN7EXAMPL2", - "offenderEntropy": -1, - "commit": "a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0", - "repo": "test_repo_5", - "rule": "AWS Access Key", - "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", - "operation": "addition" - } -] diff --git a/test_data/test_local_repo_four_alt_config_entropy.json b/test_data/test_local_repo_four_alt_config_entropy.json deleted file mode 100644 index 54b542d9..00000000 --- a/test_data/test_local_repo_four_alt_config_entropy.json +++ /dev/null @@ -1,36 +0,0 @@ -[ - { - "line": "const AWSSECRET = \"99432bfewaf823ec3294e231\"", - "lineNumber": 4, - "offender": "\"99432bfewaf823ec3294e231\"", - "offenderEntropy": 3.355, - "commit": "84ac4e80d4dbf2c968b64e9d4005f5079795bb81", - "repo": "test_repo_4", - "repoURL": "", - "leakURL": "", - "rule": "entropy", - "commitMessage": "more secrets\n", - "author": "zach rice", - "email": "zricer@protonmail.com", - "file": "secrets.md", - "date": "2019-10-25T13:54:08-04:00", - "tags": "entropy" - }, - { - "line": " const AWSSECRET = \"99432bfewaf823ec3294e231\"", - "lineNumber": 5, - "offender": "\"99432bfewaf823ec3294e231\"", - "offenderEntropy": 3.355, - "commit": "b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba", - "repo": "test_repo_4", - "repoURL": "", - "leakURL": "", - "rule": "entropy", - "commitMessage": "adding another one\n", - "author": "zach rice", - "email": "zricer@protonmail.com", - "file": "secrets.md", - "date": "2019-10-25T13:12:08-04:00", - "tags": "entropy" - } -] diff --git a/test_data/test_local_repo_four_leaks_commit_timerange.json b/test_data/test_local_repo_four_leaks_commit_timerange.json deleted file mode 100644 index dafafa47..00000000 --- a/test_data/test_local_repo_four_leaks_commit_timerange.json +++ /dev/null @@ -1,36 +0,0 @@ -[ - { - "line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", - "lineNumber": 4, - "offender": "AKIALALEMEL33243OLIB", - "offenderEntropy": -1, - "commit": "b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba", - "repo": "test_repo_4", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", - "repo": "test_repo_4", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - } -] diff --git a/test_data/test_local_repo_nine_aws_leak.json b/test_data/test_local_repo_nine_aws_leak.json deleted file mode 100644 index a0df4992..00000000 --- a/test_data/test_local_repo_nine_aws_leak.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 5, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "6557c92612d3b35979bd426d429255b3bf9fab74", - "repo": "test_repo_9", - "rule": "AWS Access Key", - "commitMessage": "commit 1 with secrets\n", - "author": "zach rice", - "email": "zricer@protonmail.com", - "file": "server.test.py", - "date": "2019-10-24T09:29:27-04:00", - "tags": "key, AWS", - "operation": "addition" - } -] diff --git a/test_data/test_local_repo_one_aws_leak.json b/test_data/test_local_repo_one_aws_leak.json deleted file mode 100644 index e01805e4..00000000 --- a/test_data/test_local_repo_one_aws_leak.json +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 5, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "6557c92612d3b35979bd426d429255b3bf9fab74", - "repo": "test_repo_1", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "commit 1 with secrets\n", - "author": "zach rice", - "email": "zricer@protonmail.com", - "file": "server.test.py", - "date": "2019-10-24T09:29:27-04:00", - "tags": "key, AWS" - } -] diff --git a/test_data/test_local_repo_one_aws_leak_and_file_leak.json b/test_data/test_local_repo_one_aws_leak_and_file_leak.json deleted file mode 100644 index 586282d9..00000000 --- a/test_data/test_local_repo_one_aws_leak_and_file_leak.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 5, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "6557c92612d3b35979bd426d429255b3bf9fab74", - "repo": "test_repo_1", - "rule": "AWS Access Key", - "commitMessage": "commit 1 with secrets\n", - "author": "zach rice", - "email": "zricer@protonmail.com", - "file": "server.test.py", - "date": "2019-10-24T09:29:27-04:00", - "tags": "key, AWS", - "operation": "addition" - } -] diff --git a/test_data/test_local_repo_one_aws_leak_commit.json b/test_data/test_local_repo_one_aws_leak_commit.json deleted file mode 100644 index 586282d9..00000000 --- a/test_data/test_local_repo_one_aws_leak_commit.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 5, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "6557c92612d3b35979bd426d429255b3bf9fab74", - "repo": "test_repo_1", - "rule": "AWS Access Key", - "commitMessage": "commit 1 with secrets\n", - "author": "zach rice", - "email": "zricer@protonmail.com", - "file": "server.test.py", - "date": "2019-10-24T09:29:27-04:00", - "tags": "key, AWS", - "operation": "addition" - } -] diff --git a/test_data/test_local_repo_seven_aws_leak_uncommitted.json b/test_data/test_local_repo_seven_aws_leak_uncommitted.json deleted file mode 100644 index 96746a89..00000000 --- a/test_data/test_local_repo_seven_aws_leak_uncommitted.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "line": "AKIAIO5FODNN7EXAMPLE", - "lineNumber": 5, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "0000000000000000000000000000000000000000", - "repo": "test_repo_7", - "rule": "AWS Access Key", - "commitMessage": "", - "author": "", - "email": "", - "file": "file", - "date": "1970-01-01T00:00:00Z", - "tags": "key, AWS", - "operation": "equal" - } -] diff --git a/test_data/test_local_repo_six.json b/test_data/test_local_repo_six.json deleted file mode 100644 index 7ce5d3be..00000000 --- a/test_data/test_local_repo_six.json +++ /dev/null @@ -1,47 +0,0 @@ -[ - { - "line": "api_token: exampleSecretPassword", - "lineNumber": 3, - "offender": "token: exampleSecretPassword", - "offenderEntropy": -1, - "commit": "e7bf376f855ae9bc6e3bb27b5f9d65c57eba799d", - "repo": "test_repo_6", - "rule": "Generic password", - "commitMessage": "More secrets\n\n", - "author": "Noel Algora", - "email": "noealgigu@gmail.com", - "file": "config/config.yaml", - "date": "2020-02-19T04:08:26-05:00", - "tags": "key, Yml, Yaml" - }, - { - "line": "db_password_token: exampleSecretPassword", - "lineNumber": 3, - "offender": "password_token: exampleSecretPassword", - "offenderEntropy": -1, - "commit": "e7bf376f855ae9bc6e3bb27b5f9d65c57eba799d", - "repo": "test_repo_6", - "rule": "Generic password", - "commitMessage": "More secrets\n\n", - "author": "Noel Algora", - "email": "noealgigu@gmail.com", - "file": "config/config.yaml", - "date": "2020-02-19T04:08:26-05:00", - "tags": "key, Yml, Yaml" - }, - { - "line": "aws_access_key_id=AKIAIO5FODNN7EXAMPLE", - "lineNumber": 1, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "95cf0237f8cdfc0686a29df08260d8635f46c9b0", - "repo": "test_repo_6", - "rule": "AWS Access Key", - "commitMessage": "AWS Key in properties\n\n", - "author": "Noel Algora", - "email": "noealgigu@gmail.com", - "file": "config/application.properties", - "date": "2020-02-19T04:04:15-05:00", - "tags": "key, AWS" - } -] diff --git a/test_data/test_local_repo_six_filename.json b/test_data/test_local_repo_six_filename.json deleted file mode 100644 index 63102fce..00000000 --- a/test_data/test_local_repo_six_filename.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "line": "api_token: exampleSecretPassword", - "lineNumber": 2, - "offender": "token: exampleSecretPassword", - "offenderEntropy": -1, - "commit": "98b6c7cb3fb29a5993c4c95c56a2dc53050b9247", - "repo": "test_repo_6", - "rule": "Generic password", - "commitMessage": "Adding some secrets in config folder\n\n", - "author": "Noel Algora", - "email": "noealgigu@gmail.com", - "file": "application.yaml", - "date": "2020-02-24T14:13:15-05:00", - "tags": "key, Yml, Yaml", - "operation": "addition" - }, - { - "line": "db_password: verySecretProductionPassword", - "lineNumber": 3, - "offender": "password: verySecretProductionPassword", - "offenderEntropy": -1, - "commit": "98b6c7cb3fb29a5993c4c95c56a2dc53050b9247", - "repo": "test_repo_6", - "rule": "Generic password", - "commitMessage": "Adding some secrets in config folder\n\n", - "author": "Noel Algora", - "email": "noealgigu@gmail.com", - "file": "application.yaml", - "date": "2020-02-24T14:13:15-05:00", - "tags": "key, Yml, Yaml", - "operation": "addition" - } -] diff --git a/test_data/test_local_repo_six_filepath.json b/test_data/test_local_repo_six_filepath.json deleted file mode 100644 index 72229301..00000000 --- a/test_data/test_local_repo_six_filepath.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "line": "aws_access_key_id=AKIAIO5FODNN7EXAMPLE", - "lineNumber": 3, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "98b6c7cb3fb29a5993c4c95c56a2dc53050b9247", - "repo": "test_repo_6", - "rule": "AWS Access Key", - "commitMessage": "Adding some secrets in config folder\n\n", - "author": "Noel Algora", - "email": "noealgigu@gmail.com", - "file": "config/application.properties", - "date": "2020-02-24T14:13:15-05:00", - "tags": "key, AWS", - "operation": "addition" - } -] diff --git a/test_data/test_local_repo_six_filepath_filename.json b/test_data/test_local_repo_six_filepath_filename.json deleted file mode 100644 index 3455e688..00000000 --- a/test_data/test_local_repo_six_filepath_filename.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "line": "apiToken=d41d8cd98f00b204e9800998ecf8427e", - "lineNumber": 2, - "offender": "Token=d41d8cd98f00b204e9800998ecf8427e", - "offenderEntropy": -1, - "commit": "98b6c7cb3fb29a5993c4c95c56a2dc53050b9247", - "repo": "test_repo_6", - "rule": "Generic password", - "commitMessage": "Adding some secrets in config folder\n\n", - "author": "Noel Algora", - "email": "noealgigu@gmail.com", - "file": "config/application.properties", - "date": "2020-02-24T14:13:15-05:00", - "tags": "key, Yml, Yaml", - "operation": "addition" - } -] diff --git a/test_data/test_local_repo_six_leaks_since_date.json b/test_data/test_local_repo_six_leaks_since_date.json deleted file mode 100644 index 72229301..00000000 --- a/test_data/test_local_repo_six_leaks_since_date.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "line": "aws_access_key_id=AKIAIO5FODNN7EXAMPLE", - "lineNumber": 3, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "98b6c7cb3fb29a5993c4c95c56a2dc53050b9247", - "repo": "test_repo_6", - "rule": "AWS Access Key", - "commitMessage": "Adding some secrets in config folder\n\n", - "author": "Noel Algora", - "email": "noealgigu@gmail.com", - "file": "config/application.properties", - "date": "2020-02-24T14:13:15-05:00", - "tags": "key, AWS", - "operation": "addition" - } -] diff --git a/test_data/test_local_repo_six_leaks_until_date.json b/test_data/test_local_repo_six_leaks_until_date.json deleted file mode 100644 index ba43af80..00000000 --- a/test_data/test_local_repo_six_leaks_until_date.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 5, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "6557c92612d3b35979bd426d429255b3bf9fab74", - "repo": "test_repo_6", - "rule": "AWS Access Key", - "commitMessage": "commit 1 with secrets\n", - "author": "zach rice", - "email": "zricer@protonmail.com", - "file": "server.test.py", - "date": "2019-10-24T09:29:27-04:00", - "tags": "key, AWS", - "operation": "addition" - } -] diff --git a/test_data/test_local_repo_six_path_globally_allowlisted.json b/test_data/test_local_repo_six_path_globally_allowlisted.json deleted file mode 100644 index ba43af80..00000000 --- a/test_data/test_local_repo_six_path_globally_allowlisted.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE',", - "lineNumber": 5, - "offender": "AKIAIO5FODNN7EXAMPLE", - "offenderEntropy": -1, - "commit": "6557c92612d3b35979bd426d429255b3bf9fab74", - "repo": "test_repo_6", - "rule": "AWS Access Key", - "commitMessage": "commit 1 with secrets\n", - "author": "zach rice", - "email": "zricer@protonmail.com", - "file": "server.test.py", - "date": "2019-10-24T09:29:27-04:00", - "tags": "key, AWS", - "operation": "addition" - } -] diff --git a/test_data/test_local_repo_three_leaks.json b/test_data/test_local_repo_three_leaks.json deleted file mode 100644 index e3e43765..00000000 --- a/test_data/test_local_repo_three_leaks.json +++ /dev/null @@ -1,70 +0,0 @@ -[ - { - "line": "AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 5, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "deea550dd6c7acaf0e59432600593533984a2125", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", - "lineNumber": 4, - "offender": "AKIALALEMEL33243OLIB", - "offenderEntropy": -1, - "commit": "b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: AKIALALEMEL33243OLIAE", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "b10b3e2cb320a8c211fda94c4567299d37de7776", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - } -] diff --git a/test_data/test_local_repo_three_leaks_with_report_groups.json b/test_data/test_local_repo_three_leaks_with_report_groups.json deleted file mode 100644 index 979afcc4..00000000 --- a/test_data/test_local_repo_three_leaks_with_report_groups.json +++ /dev/null @@ -1,53 +0,0 @@ -[ - { - "line": "AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 5, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "deea550dd6c7acaf0e59432600593533984a2125", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: AKIALALEMEL33243OLIAE", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "b10b3e2cb320a8c211fda94c4567299d37de7776", - "repo": "test_repo_3", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - } -] diff --git a/test_data/test_local_repo_two_allowlist_commits.json b/test_data/test_local_repo_two_allowlist_commits.json deleted file mode 100644 index 9365ec9c..00000000 --- a/test_data/test_local_repo_two_allowlist_commits.json +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", - "lineNumber": 4, - "offender": "AKIALALEMEL33243OLIB", - "offenderEntropy": -1, - "commit": "b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - } -] diff --git a/test_data/test_local_repo_two_leaks.json b/test_data/test_local_repo_two_leaks.json deleted file mode 100644 index 1299801a..00000000 --- a/test_data/test_local_repo_two_leaks.json +++ /dev/null @@ -1,53 +0,0 @@ -[ - { - "line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", - "lineNumber": 4, - "offender": "AKIALALEMEL33243OLIB", - "offenderEntropy": -1, - "commit": "b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: AKIALALEMEL33243OLIAE", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "b10b3e2cb320a8c211fda94c4567299d37de7776", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - } -] diff --git a/test_data/test_local_repo_two_leaks_commit_from.json b/test_data/test_local_repo_two_leaks_commit_from.json deleted file mode 100644 index ba981e94..00000000 --- a/test_data/test_local_repo_two_leaks_commit_from.json +++ /dev/null @@ -1,36 +0,0 @@ -[ - { - "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: AKIALALEMEL33243OLIAE", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "b10b3e2cb320a8c211fda94c4567299d37de7776", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - } -] diff --git a/test_data/test_local_repo_two_leaks_commit_range.json b/test_data/test_local_repo_two_leaks_commit_range.json deleted file mode 100644 index ba981e94..00000000 --- a/test_data/test_local_repo_two_leaks_commit_range.json +++ /dev/null @@ -1,36 +0,0 @@ -[ - { - "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: AKIALALEMEL33243OLIAE", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "b10b3e2cb320a8c211fda94c4567299d37de7776", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - } -] diff --git a/test_data/test_local_repo_two_leaks_commit_to.json b/test_data/test_local_repo_two_leaks_commit_to.json deleted file mode 100644 index 9365ec9c..00000000 --- a/test_data/test_local_repo_two_leaks_commit_to.json +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", - "lineNumber": 4, - "offender": "AKIALALEMEL33243OLIB", - "offenderEntropy": -1, - "commit": "b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - } -] diff --git a/test_data/test_local_repo_two_leaks_commit_to_from.json b/test_data/test_local_repo_two_leaks_commit_to_from.json deleted file mode 100644 index 2e74682f..00000000 --- a/test_data/test_local_repo_two_leaks_commit_to_from.json +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - } -] diff --git a/test_data/test_local_repo_two_leaks_deletion.json b/test_data/test_local_repo_two_leaks_deletion.json deleted file mode 100644 index c1b98226..00000000 --- a/test_data/test_local_repo_two_leaks_deletion.json +++ /dev/null @@ -1,98 +0,0 @@ -[ - { - "line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", - "lineNumber": -1, - "offender": "AKIALALEMEL33243OLIB", - "offenderEntropy": -1, - "commit": "f61cd8587b7ac1d75a89a0c9af870a2f24c60263", - "repo": "test_repo_2", - "rule": "AWS Access Key", - "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", - "operation": "deletion" - }, - { - "line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", - "lineNumber": 5, - "offender": "AKIALALEMEL33243OLIB", - "offenderEntropy": -1, - "commit": "b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba", - "repo": "test_repo_2", - "rule": "AWS Access Key", - "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", - "operation": "addition" - }, - { - "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": -1, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "996865bb912f3bc45898a370a13aadb315014b55", - "repo": "test_repo_2", - "rule": "AWS Access Key", - "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", - "operation": "deletion" - }, - { - "line": "Here's an AWS secret: AKIALALEMEL33243OLIAE", - "lineNumber": -1, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", - "repo": "test_repo_2", - "rule": "AWS Access Key", - "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", - "operation": "deletion" - }, - { - "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 5, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", - "repo": "test_repo_2", - "rule": "AWS Access Key", - "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", - "operation": "addition" - }, - { - "line": "Here's an AWS secret: AKIALALEMEL33243OLIAE", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "b10b3e2cb320a8c211fda94c4567299d37de7776", - "repo": "test_repo_2", - "rule": "AWS Access Key", - "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", - "operation": "addition" - } -] diff --git a/test_data/test_local_repo_two_leaks_file_commit_range.json b/test_data/test_local_repo_two_leaks_file_commit_range.json deleted file mode 100644 index ba981e94..00000000 --- a/test_data/test_local_repo_two_leaks_file_commit_range.json +++ /dev/null @@ -1,36 +0,0 @@ -[ - { - "line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - }, - { - "line": "Here's an AWS secret: AKIALALEMEL33243OLIAE", - "lineNumber": 3, - "offender": "AKIALALEMEL33243OLIA", - "offenderEntropy": -1, - "commit": "b10b3e2cb320a8c211fda94c4567299d37de7776", - "repo": "test_repo_2", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "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" - } -] diff --git a/test_data/test_only_files_no_git.json b/test_data/test_only_files_no_git.json deleted file mode 100644 index 27884e74..00000000 --- a/test_data/test_only_files_no_git.json +++ /dev/null @@ -1,155 +0,0 @@ -[ - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: ../test_data/test_repos/test_repo_10/README.md", - "offenderEntropy": -1, - "commit": "", - "repo": "", - "repoURL": "", - "leakURL": "", - "rule": "flag go", - "commitMessage": "", - "author": "", - "email": "", - "file": "../test_data/test_repos/test_repo_10/README.md", - "date": "0001-01-01T00:00:00Z", - "tags": "key, extensions" - }, - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: ../test_data/test_repos/test_repo_2/secrets.md", - "offenderEntropy": -1, - "commit": "", - "repo": "", - "repoURL": "", - "leakURL": "", - "rule": "flag go", - "commitMessage": "", - "author": "", - "email": "", - "file": "../test_data/test_repos/test_repo_2/secrets.md", - "date": "0001-01-01T00:00:00Z", - "tags": "key, extensions" - }, - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: ../test_data/test_repos/test_repo_2/no_secrets.md", - "offenderEntropy": -1, - "commit": "", - "repo": "", - "repoURL": "", - "leakURL": "", - "rule": "flag go", - "commitMessage": "", - "author": "", - "email": "", - "file": "../test_data/test_repos/test_repo_2/no_secrets.md", - "date": "0001-01-01T00:00:00Z", - "tags": "key, extensions" - }, - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: ../test_data/test_repos/test_repo_3/no_secrets.md", - "offenderEntropy": -1, - "commit": "", - "repo": "", - "repoURL": "", - "leakURL": "", - "rule": "flag go", - "commitMessage": "", - "author": "", - "email": "", - "file": "../test_data/test_repos/test_repo_3/no_secrets.md", - "date": "0001-01-01T00:00:00Z", - "tags": "key, extensions" - }, - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: ../test_data/test_repos/test_repo_3/secrets.md", - "offenderEntropy": -1, - "commit": "", - "repo": "", - "repoURL": "", - "leakURL": "", - "rule": "flag go", - "commitMessage": "", - "author": "", - "email": "", - "file": "../test_data/test_repos/test_repo_3/secrets.md", - "date": "0001-01-01T00:00:00Z", - "tags": "key, extensions" - }, - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: ../test_data/test_repos/test_repo_4/secrets.md", - "offenderEntropy": -1, - "commit": "", - "repo": "", - "repoURL": "", - "leakURL": "", - "rule": "flag go", - "commitMessage": "", - "author": "", - "email": "", - "file": "../test_data/test_repos/test_repo_4/secrets.md", - "date": "0001-01-01T00:00:00Z", - "tags": "key, extensions" - }, - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: ../test_data/test_repos/test_repo_4/no_secrets.md", - "offenderEntropy": -1, - "commit": "", - "repo": "", - "repoURL": "", - "leakURL": "", - "rule": "flag go", - "commitMessage": "", - "author": "", - "email": "", - "file": "../test_data/test_repos/test_repo_4/no_secrets.md", - "date": "0001-01-01T00:00:00Z", - "tags": "key, extensions" - }, - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: ../test_data/test_repos/test_repo_5/notes.md", - "offenderEntropy": -1, - "commit": "", - "repo": "", - "repoURL": "", - "leakURL": "", - "rule": "flag go", - "commitMessage": "", - "author": "", - "email": "", - "file": "../test_data/test_repos/test_repo_5/notes.md", - "date": "0001-01-01T00:00:00Z", - "tags": "key, extensions" - }, - { - "line": "", - "lineNumber": 1, - "offender": "Filename or path offender: ../test_data/test_repos/test_repo_8/README.md", - "offenderEntropy": -1, - "commit": "", - "repo": "", - "repoURL": "", - "leakURL": "", - "rule": "flag go", - "commitMessage": "", - "author": "", - "email": "", - "file": "../test_data/test_repos/test_repo_8/README.md", - "date": "0001-01-01T00:00:00Z", - "tags": "key, extensions" - } -] diff --git a/test_data/test_options/test_local_repo_commits.txt b/test_data/test_options/test_local_repo_commits.txt deleted file mode 100644 index b3b16ca0..00000000 --- a/test_data/test_options/test_local_repo_commits.txt +++ /dev/null @@ -1,5 +0,0 @@ -d8ac0b73aeeb45843319cdc5ce506516eb49bf7a -996865bb912f3bc45898a370a13aadb315014b55 -17471a5fda722a9e423f1a0d3f0d267ea009d41c -51f6dcf6b89b93f4075ba92c400b075631a6cc93 -b10b3e2cb320a8c211fda94c4567299d37de7776 diff --git a/test_data/test_regex_allowlist.json b/test_data/test_regex_allowlist.json deleted file mode 100644 index 19765bd5..00000000 --- a/test_data/test_regex_allowlist.json +++ /dev/null @@ -1 +0,0 @@ -null diff --git a/test_data/test_regex_entropy.json b/test_data/test_regex_entropy.json deleted file mode 100644 index 173c5122..00000000 --- a/test_data/test_regex_entropy.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "line": " aws_secret_access_key='ABCDEF+c2L7yXeGvUyrPgYsDnWRRC1AYEXAMPLE'", - "lineNumber": 6, - "offender": "'ABCDEF+c2L7yXeGvUyrPgYsDnWRRC1AYEXAMPLE'", - "offenderEntropy": 4.631, - "commit": "6557c92612d3b35979bd426d429255b3bf9fab74", - "repo": "test_repo_1", - "rule": "entropy and regex", - "commitMessage": "commit 1 with secrets\n", - "author": "zach rice", - "email": "zricer@protonmail.com", - "file": "server.test.py", - "date": "2019-10-24T09:29:27-04:00", - "tags": "entropy", - "operation": "addition" - } -] diff --git a/test_data/test_repos/no_repo/tmp.tmp b/test_data/test_repos/no_repo/tmp.tmp deleted file mode 100644 index 1c2f433d..00000000 --- a/test_data/test_repos/no_repo/tmp.tmp +++ /dev/null @@ -1 +0,0 @@ -tmp \ No newline at end of file diff --git a/test_data/test_repos/test_dir_1/server.test.py b/test_data/test_repos/test_dir_1/server.test.py deleted file mode 100644 index a1ddd32f..00000000 --- a/test_data/test_repos/test_dir_1/server.test.py +++ /dev/null @@ -1,9 +0,0 @@ -# Do not hard code credentials -client = boto3.client( - 's3', - # Hard coded strings as credentials, not recommended. - aws_access_key_id='AKIAIO5FODNN7EXAMPLE', - aws_secret_access_key='ABCDEF+c2L7yXeGvUyrPgYsDnWRRC1AYEXAMPLE' -) - -# adding another line diff --git a/test_data/test_repos/test_dir_1/server.test2.py b/test_data/test_repos/test_dir_1/server.test2.py deleted file mode 100644 index a1ddd32f..00000000 --- a/test_data/test_repos/test_dir_1/server.test2.py +++ /dev/null @@ -1,9 +0,0 @@ -# Do not hard code credentials -client = boto3.client( - 's3', - # Hard coded strings as credentials, not recommended. - aws_access_key_id='AKIAIO5FODNN7EXAMPLE', - aws_secret_access_key='ABCDEF+c2L7yXeGvUyrPgYsDnWRRC1AYEXAMPLE' -) - -# adding another line diff --git a/test_data/test_repos/test_repo_1/dotGit/COMMIT_EDITMSG b/test_data/test_repos/test_repo_1/dotGit/COMMIT_EDITMSG deleted file mode 100644 index 60c9e47f..00000000 --- a/test_data/test_repos/test_repo_1/dotGit/COMMIT_EDITMSG +++ /dev/null @@ -1 +0,0 @@ -comment diff --git a/test_data/test_repos/test_repo_1/dotGit/config b/test_data/test_repos/test_repo_1/dotGit/config deleted file mode 100644 index 6c9406b7..00000000 --- a/test_data/test_repos/test_repo_1/dotGit/config +++ /dev/null @@ -1,7 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = true - bare = false - logallrefupdates = true - ignorecase = true - precomposeunicode = true diff --git a/test_data/test_repos/test_repo_1/dotGit/index b/test_data/test_repos/test_repo_1/dotGit/index deleted file mode 100644 index 3a76f378..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/index and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/info/exclude b/test_data/test_repos/test_repo_1/dotGit/info/exclude deleted file mode 100644 index a5196d1b..00000000 --- a/test_data/test_repos/test_repo_1/dotGit/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# 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_1/dotGit/logs/HEAD b/test_data/test_repos/test_repo_1/dotGit/logs/HEAD deleted file mode 100644 index cb19a50e..00000000 --- a/test_data/test_repos/test_repo_1/dotGit/logs/HEAD +++ /dev/null @@ -1,2 +0,0 @@ -0000000000000000000000000000000000000000 6557c92612d3b35979bd426d429255b3bf9fab74 zach rice 1571923767 -0400 commit (initial): commit 1 with secrets -6557c92612d3b35979bd426d429255b3bf9fab74 d274003914c707212cbe84e3e466a00013ccb639 zach rice 1571925818 -0400 commit: comment diff --git a/test_data/test_repos/test_repo_1/dotGit/logs/refs/heads/master b/test_data/test_repos/test_repo_1/dotGit/logs/refs/heads/master deleted file mode 100644 index cb19a50e..00000000 --- a/test_data/test_repos/test_repo_1/dotGit/logs/refs/heads/master +++ /dev/null @@ -1,2 +0,0 @@ -0000000000000000000000000000000000000000 6557c92612d3b35979bd426d429255b3bf9fab74 zach rice 1571923767 -0400 commit (initial): commit 1 with secrets -6557c92612d3b35979bd426d429255b3bf9fab74 d274003914c707212cbe84e3e466a00013ccb639 zach rice 1571925818 -0400 commit: comment diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/10/fa14c5ab0134436e2ae435138bf921eb477c60 b/test_data/test_repos/test_repo_1/dotGit/objects/10/fa14c5ab0134436e2ae435138bf921eb477c60 deleted file mode 100644 index c32cf91d..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/10/fa14c5ab0134436e2ae435138bf921eb477c60 and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/3a/76f3781306faf5612017bf18a4b4bdb9f927bf b/test_data/test_repos/test_repo_1/dotGit/objects/3a/76f3781306faf5612017bf18a4b4bdb9f927bf deleted file mode 100644 index 0bd54d2c..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/3a/76f3781306faf5612017bf18a4b4bdb9f927bf and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/41/42082bcb939bbc17985a69ba748491ac6b62a5 b/test_data/test_repos/test_repo_1/dotGit/objects/41/42082bcb939bbc17985a69ba748491ac6b62a5 deleted file mode 100644 index dba98289..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/41/42082bcb939bbc17985a69ba748491ac6b62a5 and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/49/8b267a8c7812490d6479839c5577eaaec79d62 b/test_data/test_repos/test_repo_1/dotGit/objects/49/8b267a8c7812490d6479839c5577eaaec79d62 deleted file mode 100644 index b558235f..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/49/8b267a8c7812490d6479839c5577eaaec79d62 and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/60/c9e47f150a6b713e247e6105b77f1b961f844f b/test_data/test_repos/test_repo_1/dotGit/objects/60/c9e47f150a6b713e247e6105b77f1b961f844f deleted file mode 100644 index e212d90f..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/60/c9e47f150a6b713e247e6105b77f1b961f844f and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/61/87dbf4390fc6e28445dd3d988aefb9d1111988 b/test_data/test_repos/test_repo_1/dotGit/objects/61/87dbf4390fc6e28445dd3d988aefb9d1111988 deleted file mode 100644 index eb42e868..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/61/87dbf4390fc6e28445dd3d988aefb9d1111988 and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/65/57c92612d3b35979bd426d429255b3bf9fab74 b/test_data/test_repos/test_repo_1/dotGit/objects/65/57c92612d3b35979bd426d429255b3bf9fab74 deleted file mode 100644 index edf7d2fb..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/65/57c92612d3b35979bd426d429255b3bf9fab74 and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/6a/756416384c210ada2631f17862f5c01fffa478 b/test_data/test_repos/test_repo_1/dotGit/objects/6a/756416384c210ada2631f17862f5c01fffa478 deleted file mode 100644 index 072ee533..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/6a/756416384c210ada2631f17862f5c01fffa478 and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/6c/9406b7d9320db083eca69b3f8bee9a6c7b50d4 b/test_data/test_repos/test_repo_1/dotGit/objects/6c/9406b7d9320db083eca69b3f8bee9a6c7b50d4 deleted file mode 100644 index 0d57232e..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/6c/9406b7d9320db083eca69b3f8bee9a6c7b50d4 and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/6c/bef5c370d8c3486ca85423dd70440c5e0a2aa2 b/test_data/test_repos/test_repo_1/dotGit/objects/6c/bef5c370d8c3486ca85423dd70440c5e0a2aa2 deleted file mode 100644 index b098b0b6..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/6c/bef5c370d8c3486ca85423dd70440c5e0a2aa2 and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/80/8b12c5ca4b142367932e7045d555a639fc148c b/test_data/test_repos/test_repo_1/dotGit/objects/80/8b12c5ca4b142367932e7045d555a639fc148c deleted file mode 100644 index 9cd8d694..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/80/8b12c5ca4b142367932e7045d555a639fc148c and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/80/ba94135cc378364af9d3cb2450df48e51faf2c b/test_data/test_repos/test_repo_1/dotGit/objects/80/ba94135cc378364af9d3cb2450df48e51faf2c deleted file mode 100644 index 86d326dd..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/80/ba94135cc378364af9d3cb2450df48e51faf2c and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/9e/523225b31add24e72f2feb0b2645cfb36542dc b/test_data/test_repos/test_repo_1/dotGit/objects/9e/523225b31add24e72f2feb0b2645cfb36542dc deleted file mode 100644 index 2103921e..00000000 --- a/test_data/test_repos/test_repo_1/dotGit/objects/9e/523225b31add24e72f2feb0b2645cfb36542dc +++ /dev/null @@ -1,3 +0,0 @@ -xMŽO ‚@Å;ï§è`‘%:XjE ¢<ɺ;˜¤»°³~ûÌ -z§÷`~ïMVê Fþ´Ó…PƒÒnÜHZ"ƒ•-xIL”Eca™¶Ú÷>±Ç ‘C¾ã¶® «,�¬)TNÀé¿Èm7 -]U¨$J¯%ù“R.¥w¬ÓBΜ`³Ö‡q|÷ûIt vÇmôÝy_6ïÙ?¨!æ‹0Šb´�ÔW\>ε9æ …êr:-†Aò+a}Æ^K§N$ \ No newline at end of file diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/a1/fd29ec14823d8bc4a8d1a2cfe35451580f5118 b/test_data/test_repos/test_repo_1/dotGit/objects/a1/fd29ec14823d8bc4a8d1a2cfe35451580f5118 deleted file mode 100644 index b72c5f77..00000000 --- a/test_data/test_repos/test_repo_1/dotGit/objects/a1/fd29ec14823d8bc4a8d1a2cfe35451580f5118 +++ /dev/null @@ -1,3 +0,0 @@ -xuPMOÃ0 åÚüŠGV1lc.LEB`†Ä¸!Miç*a]R5!þ;N‡øââÄö{ÏÏÎ+—ãìôt§³;Ì�z-:¢ƒK zQ«º"hç–ðEcê€à°RKÂÚ\‰zí5\Œ³~À¬™¦/š7Ì~Ú‘‡ªª_h­|PMÀÆ�næªXf]Rv�†ž¨ßTVÙh²Ì$ÈmSþÔ„ñÑׂ�D+dUÎþƒæF\âˆ%­Z}VJ{²n¨ßPAæ™ä@S"�è[Èôz2›ß=Üß̧w³Éôv~5}¸�IÁ¬HLv,’�nu"C¦F¢_ÅÏ?¼dáD’гª 9¬){üeÆŠ/,Ó$axZòu ƒgm -‹(·jÏòc•~Üøé[+Ñ9ÈÞ%.öN"s<æ¸=àVéŌ⯠-~L–îïbÔãþÂY¥eMª$ \ No newline at end of file diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/a4/fa2187727281aea78d7c3aaebdb4b924fc4e4d b/test_data/test_repos/test_repo_1/dotGit/objects/a4/fa2187727281aea78d7c3aaebdb4b924fc4e4d deleted file mode 100644 index 0aabdd40..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/a4/fa2187727281aea78d7c3aaebdb4b924fc4e4d and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/a5/196d1be8fb59edf8062bef36d3a602e0812139 b/test_data/test_repos/test_repo_1/dotGit/objects/a5/196d1be8fb59edf8062bef36d3a602e0812139 deleted file mode 100644 index 62de872c..00000000 --- a/test_data/test_repos/test_repo_1/dotGit/objects/a5/196d1be8fb59edf8062bef36d3a602e0812139 +++ /dev/null @@ -1 +0,0 @@ -x-�±jÃ0„;ç)<¤ µSJ§B¦@¦¾Aé Û¿lI¤_¸Yú쑃·ãø¾»Þ³ÇûÇÛSƒÉ)|n­ó’ѶÔYÒäoðe”Ö&†SW©£‹–Ç­Þ5ør±:EV“‹Óûf“C�¨¹«ä… ×Ä_�Yý .âüZu�¥÷\\œ°°ø½Tz"GdQÐÖ…íW£*)f<—¸=¬ÎâÆ‚ÅD…%Ë£ù¬ò¡û¦ùYÃÿîá›SC \ No newline at end of file diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/a5/d7b84a673458d14d9aab082183a1968c2c7492 b/test_data/test_repos/test_repo_1/dotGit/objects/a5/d7b84a673458d14d9aab082183a1968c2c7492 deleted file mode 100644 index cafdfdb1..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/a5/d7b84a673458d14d9aab082183a1968c2c7492 and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/b5/8d1184a9d43a39c0d95f32453efc78581877d6 b/test_data/test_repos/test_repo_1/dotGit/objects/b5/8d1184a9d43a39c0d95f32453efc78581877d6 deleted file mode 100644 index 043d9c54..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/b5/8d1184a9d43a39c0d95f32453efc78581877d6 and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/c9/8e6c52cbd1f50de572ff12a3441271fccff705 b/test_data/test_repos/test_repo_1/dotGit/objects/c9/8e6c52cbd1f50de572ff12a3441271fccff705 deleted file mode 100644 index 14206b0b..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/c9/8e6c52cbd1f50de572ff12a3441271fccff705 and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/cb/089cd89a7d7686d284d8761201649346b5aa1c b/test_data/test_repos/test_repo_1/dotGit/objects/cb/089cd89a7d7686d284d8761201649346b5aa1c deleted file mode 100644 index 17c8d93c..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/cb/089cd89a7d7686d284d8761201649346b5aa1c and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/cb/19a50e8cdeb7011eccdb13f3b739f00d775bab b/test_data/test_repos/test_repo_1/dotGit/objects/cb/19a50e8cdeb7011eccdb13f3b739f00d775bab deleted file mode 100644 index 692983a5..00000000 --- a/test_data/test_repos/test_repo_1/dotGit/objects/cb/19a50e8cdeb7011eccdb13f3b739f00d775bab +++ /dev/null @@ -1,2 +0,0 @@ -x��Í -1 „½êS䨥MÚf+"¾J“­XØY ‚OïŠ^¼íÀ00‡áéFB\™…‚à=kÄ`±%!9Jë0ÌŽè½�\ã5 ;x%½ÁT4Ãéõ‰érŸÆ:}*ÝAÇþ Ö³�HöƳžÛ¾TØ–¡Ô’ºÝ~�…g©7xd�r}l3´Èó.Eë” £E•ܸLÙ…�æÇ–T%P\ ëÛüÁ~óP7oq,\é \ No newline at end of file diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/d2/74003914c707212cbe84e3e466a00013ccb639 b/test_data/test_repos/test_repo_1/dotGit/objects/d2/74003914c707212cbe84e3e466a00013ccb639 deleted file mode 100644 index 142e1a6d..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/d2/74003914c707212cbe84e3e466a00013ccb639 and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/e6/73bb3980f3c286291809e05f80873852bc3e9c b/test_data/test_repos/test_repo_1/dotGit/objects/e6/73bb3980f3c286291809e05f80873852bc3e9c deleted file mode 100644 index 144d4077..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/e6/73bb3980f3c286291809e05f80873852bc3e9c and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/e9/e5396f7e52aa48de485b4836ebb041cc7f7c46 b/test_data/test_repos/test_repo_1/dotGit/objects/e9/e5396f7e52aa48de485b4836ebb041cc7f7c46 deleted file mode 100644 index da7e1c7c..00000000 Binary files a/test_data/test_repos/test_repo_1/dotGit/objects/e9/e5396f7e52aa48de485b4836ebb041cc7f7c46 and /dev/null differ diff --git a/test_data/test_repos/test_repo_1/dotGit/objects/ec/17ec1939b7c3e86b7cb6c0c4de6b0818a7e75e b/test_data/test_repos/test_repo_1/dotGit/objects/ec/17ec1939b7c3e86b7cb6c0c4de6b0818a7e75e deleted file mode 100644 index d7558de5..00000000 --- a/test_data/test_repos/test_repo_1/dotGit/objects/ec/17ec1939b7c3e86b7cb6c0c4de6b0818a7e75e +++ /dev/null @@ -1,2 +0,0 @@ -x-ÍK‚0P×9E [�r§Kïà&0H -Ȥ&ƒ…·7~–Ý]õÚ/âq¾\õ±ó!vyrµ«q‹à�Ö´0&‘¹×� &Hʉ”AHÔÏ< dÉÁD_E±e† 1607529853 -0500 clone: from github.com:zricethezav/test_repo_paths.git diff --git a/test_data/test_repos/test_repo_10/dotGit/logs/refs/heads/main b/test_data/test_repos/test_repo_10/dotGit/logs/refs/heads/main deleted file mode 100644 index e729e639..00000000 --- a/test_data/test_repos/test_repo_10/dotGit/logs/refs/heads/main +++ /dev/null @@ -1 +0,0 @@ -0000000000000000000000000000000000000000 5cd9652a24771400b4ce76beadbb2496a73341b8 Zach Rice 1607529853 -0500 clone: from github.com:zricethezav/test_repo_paths.git diff --git a/test_data/test_repos/test_repo_10/dotGit/logs/refs/remotes/origin/HEAD b/test_data/test_repos/test_repo_10/dotGit/logs/refs/remotes/origin/HEAD deleted file mode 100644 index e729e639..00000000 --- a/test_data/test_repos/test_repo_10/dotGit/logs/refs/remotes/origin/HEAD +++ /dev/null @@ -1 +0,0 @@ -0000000000000000000000000000000000000000 5cd9652a24771400b4ce76beadbb2496a73341b8 Zach Rice 1607529853 -0500 clone: from github.com:zricethezav/test_repo_paths.git diff --git a/test_data/test_repos/test_repo_10/dotGit/objects/pack/pack-bb11838b7e60925aeee8a41a4a2b508b576b4b4c.idx b/test_data/test_repos/test_repo_10/dotGit/objects/pack/pack-bb11838b7e60925aeee8a41a4a2b508b576b4b4c.idx deleted file mode 100644 index 7070ac48..00000000 Binary files a/test_data/test_repos/test_repo_10/dotGit/objects/pack/pack-bb11838b7e60925aeee8a41a4a2b508b576b4b4c.idx and /dev/null differ diff --git a/test_data/test_repos/test_repo_10/dotGit/objects/pack/pack-bb11838b7e60925aeee8a41a4a2b508b576b4b4c.pack b/test_data/test_repos/test_repo_10/dotGit/objects/pack/pack-bb11838b7e60925aeee8a41a4a2b508b576b4b4c.pack deleted file mode 100644 index 3acfcc74..00000000 Binary files a/test_data/test_repos/test_repo_10/dotGit/objects/pack/pack-bb11838b7e60925aeee8a41a4a2b508b576b4b4c.pack and /dev/null differ diff --git a/test_data/test_repos/test_repo_10/dotGit/packed-refs b/test_data/test_repos/test_repo_10/dotGit/packed-refs deleted file mode 100644 index dc736bbf..00000000 --- a/test_data/test_repos/test_repo_10/dotGit/packed-refs +++ /dev/null @@ -1,2 +0,0 @@ -# pack-refs with: peeled fully-peeled sorted -5cd9652a24771400b4ce76beadbb2496a73341b8 refs/remotes/origin/main diff --git a/test_data/test_repos/test_repo_10/dotGit/refs/heads/main b/test_data/test_repos/test_repo_10/dotGit/refs/heads/main deleted file mode 100644 index 88299b61..00000000 --- a/test_data/test_repos/test_repo_10/dotGit/refs/heads/main +++ /dev/null @@ -1 +0,0 @@ -5cd9652a24771400b4ce76beadbb2496a73341b8 diff --git a/test_data/test_repos/test_repo_10/dotGit/refs/remotes/origin/HEAD b/test_data/test_repos/test_repo_10/dotGit/refs/remotes/origin/HEAD deleted file mode 100644 index 4b0a8759..00000000 --- a/test_data/test_repos/test_repo_10/dotGit/refs/remotes/origin/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/remotes/origin/main diff --git a/test_data/test_repos/test_repo_10/gitfile.txt b/test_data/test_repos/test_repo_10/gitfile.txt deleted file mode 100644 index 6c071630..00000000 --- a/test_data/test_repos/test_repo_10/gitfile.txt +++ /dev/null @@ -1 +0,0 @@ -a git file \ No newline at end of file diff --git a/test_data/test_repos/test_repo_10/somedir.git/secret.key b/test_data/test_repos/test_repo_10/somedir.git/secret.key deleted file mode 100644 index 70b8a06c..00000000 --- a/test_data/test_repos/test_repo_10/somedir.git/secret.key +++ /dev/null @@ -1 +0,0 @@ -hah diff --git a/test_data/test_repos/test_repo_10/tmp/bad.docx b/test_data/test_repos/test_repo_10/tmp/bad.docx deleted file mode 100644 index f4ff7ce0..00000000 --- a/test_data/test_repos/test_repo_10/tmp/bad.docx +++ /dev/null @@ -1 +0,0 @@ -bad .docx diff --git a/test_data/test_repos/test_repo_2/dotGit/COMMIT_EDITMSG b/test_data/test_repos/test_repo_2/dotGit/COMMIT_EDITMSG deleted file mode 100644 index 23b3d6ed..00000000 --- a/test_data/test_repos/test_repo_2/dotGit/COMMIT_EDITMSG +++ /dev/null @@ -1 +0,0 @@ -rm secrets again diff --git a/test_data/test_repos/test_repo_2/dotGit/config b/test_data/test_repos/test_repo_2/dotGit/config deleted file mode 100644 index 6c9406b7..00000000 --- a/test_data/test_repos/test_repo_2/dotGit/config +++ /dev/null @@ -1,7 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = true - bare = false - logallrefupdates = true - ignorecase = true - precomposeunicode = true diff --git a/test_data/test_repos/test_repo_2/dotGit/description b/test_data/test_repos/test_repo_2/dotGit/description deleted file mode 100644 index 498b267a..00000000 --- a/test_data/test_repos/test_repo_2/dotGit/description +++ /dev/null @@ -1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. diff --git a/test_data/test_repos/test_repo_2/dotGit/index b/test_data/test_repos/test_repo_2/dotGit/index deleted file mode 100644 index 76c71f09..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/index and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/info/exclude b/test_data/test_repos/test_repo_2/dotGit/info/exclude deleted file mode 100644 index a5196d1b..00000000 --- a/test_data/test_repos/test_repo_2/dotGit/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# 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_2/dotGit/logs/HEAD b/test_data/test_repos/test_repo_2/dotGit/logs/HEAD deleted file mode 100644 index 95800b46..00000000 --- a/test_data/test_repos/test_repo_2/dotGit/logs/HEAD +++ /dev/null @@ -1,8 +0,0 @@ -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 diff --git a/test_data/test_repos/test_repo_2/dotGit/logs/refs/heads/master b/test_data/test_repos/test_repo_2/dotGit/logs/refs/heads/master deleted file mode 100644 index 95800b46..00000000 --- a/test_data/test_repos/test_repo_2/dotGit/logs/refs/heads/master +++ /dev/null @@ -1,8 +0,0 @@ -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 diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/0b/c3a0c9536cc7273b74f48edcc6adead16333f7 b/test_data/test_repos/test_repo_2/dotGit/objects/0b/c3a0c9536cc7273b74f48edcc6adead16333f7 deleted file mode 100644 index 66cbf090..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/0b/c3a0c9536cc7273b74f48edcc6adead16333f7 and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/0e/cd6aeaa0b76f5cad8077ae5be8420457403bfc b/test_data/test_repos/test_repo_2/dotGit/objects/0e/cd6aeaa0b76f5cad8077ae5be8420457403bfc deleted file mode 100644 index df43f260..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/0e/cd6aeaa0b76f5cad8077ae5be8420457403bfc and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/15/40f193bc25b494cde092597a79af04013807ec b/test_data/test_repos/test_repo_2/dotGit/objects/15/40f193bc25b494cde092597a79af04013807ec deleted file mode 100644 index 5ad713e1..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/15/40f193bc25b494cde092597a79af04013807ec and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/17/471a5fda722a9e423f1a0d3f0d267ea009d41c b/test_data/test_repos/test_repo_2/dotGit/objects/17/471a5fda722a9e423f1a0d3f0d267ea009d41c deleted file mode 100644 index 915763a2..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/17/471a5fda722a9e423f1a0d3f0d267ea009d41c and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/20/ef26716304570775cb395f37cb2d626bbd0a82 b/test_data/test_repos/test_repo_2/dotGit/objects/20/ef26716304570775cb395f37cb2d626bbd0a82 deleted file mode 100644 index b211c238..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/20/ef26716304570775cb395f37cb2d626bbd0a82 and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/24/3d535d84ed97fbc20d09c9d2c2f417507fe461 b/test_data/test_repos/test_repo_2/dotGit/objects/24/3d535d84ed97fbc20d09c9d2c2f417507fe461 deleted file mode 100644 index 838bf1e1..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/24/3d535d84ed97fbc20d09c9d2c2f417507fe461 and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/3d/dab16668fe919638b76dd48c96bedf0e2276ca b/test_data/test_repos/test_repo_2/dotGit/objects/3d/dab16668fe919638b76dd48c96bedf0e2276ca deleted file mode 100644 index 94c73daf..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/3d/dab16668fe919638b76dd48c96bedf0e2276ca and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/51/f6dcf6b89b93f4075ba92c400b075631a6cc93 b/test_data/test_repos/test_repo_2/dotGit/objects/51/f6dcf6b89b93f4075ba92c400b075631a6cc93 deleted file mode 100644 index 4258020f..00000000 --- a/test_data/test_repos/test_repo_2/dotGit/objects/51/f6dcf6b89b93f4075ba92c400b075631a6cc93 +++ /dev/null @@ -1,3 +0,0 @@ -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_2/dotGit/objects/5d/5c8724e8787e69cebcc9ea4bceb47d9941656e b/test_data/test_repos/test_repo_2/dotGit/objects/5d/5c8724e8787e69cebcc9ea4bceb47d9941656e deleted file mode 100644 index f1090fb3..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/5d/5c8724e8787e69cebcc9ea4bceb47d9941656e and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/5d/630e1163864c8b5616199962390a36a8a53b69 b/test_data/test_repos/test_repo_2/dotGit/objects/5d/630e1163864c8b5616199962390a36a8a53b69 deleted file mode 100644 index d93d42c3..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/5d/630e1163864c8b5616199962390a36a8a53b69 and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/5e/a982157d053ce35a9b79394973c7c8901f317c b/test_data/test_repos/test_repo_2/dotGit/objects/5e/a982157d053ce35a9b79394973c7c8901f317c deleted file mode 100644 index 1fe46e52..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/5e/a982157d053ce35a9b79394973c7c8901f317c and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/69/b7669aa8e125ef0e14abce31911e84dd09e25e b/test_data/test_repos/test_repo_2/dotGit/objects/69/b7669aa8e125ef0e14abce31911e84dd09e25e deleted file mode 100644 index d9448982..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/69/b7669aa8e125ef0e14abce31911e84dd09e25e and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/85/699e429f33e75541530998a5b5d457a12e6285 b/test_data/test_repos/test_repo_2/dotGit/objects/85/699e429f33e75541530998a5b5d457a12e6285 deleted file mode 100644 index 312b2c1d..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/85/699e429f33e75541530998a5b5d457a12e6285 and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/8c/b18882408aad0b2abf556bf1f2c5478ef328f5 b/test_data/test_repos/test_repo_2/dotGit/objects/8c/b18882408aad0b2abf556bf1f2c5478ef328f5 deleted file mode 100644 index d87f9327..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/8c/b18882408aad0b2abf556bf1f2c5478ef328f5 and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/96/c1c0a3632af796efd3942cc1d81d7af48ead3e b/test_data/test_repos/test_repo_2/dotGit/objects/96/c1c0a3632af796efd3942cc1d81d7af48ead3e deleted file mode 100644 index f9dc2d4b..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/96/c1c0a3632af796efd3942cc1d81d7af48ead3e and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/99/6865bb912f3bc45898a370a13aadb315014b55 b/test_data/test_repos/test_repo_2/dotGit/objects/99/6865bb912f3bc45898a370a13aadb315014b55 deleted file mode 100644 index c88cfdb9..00000000 --- a/test_data/test_repos/test_repo_2/dotGit/objects/99/6865bb912f3bc45898a370a13aadb315014b55 +++ /dev/null @@ -1,3 +0,0 @@ -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_2/dotGit/objects/a6/214eec6a6290fec81fe250e5b73b86d634a981 b/test_data/test_repos/test_repo_2/dotGit/objects/a6/214eec6a6290fec81fe250e5b73b86d634a981 deleted file mode 100644 index 2511ae02..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/a6/214eec6a6290fec81fe250e5b73b86d634a981 and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/b1/0b3e2cb320a8c211fda94c4567299d37de7776 b/test_data/test_repos/test_repo_2/dotGit/objects/b1/0b3e2cb320a8c211fda94c4567299d37de7776 deleted file mode 100644 index ac93c76f..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/b1/0b3e2cb320a8c211fda94c4567299d37de7776 and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/b2/eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba b/test_data/test_repos/test_repo_2/dotGit/objects/b2/eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba deleted file mode 100644 index 41025422..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/b2/eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/c0/23aab082c73abd327675ad485fe78bb427ae21 b/test_data/test_repos/test_repo_2/dotGit/objects/c0/23aab082c73abd327675ad485fe78bb427ae21 deleted file mode 100644 index 5e07a204..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/c0/23aab082c73abd327675ad485fe78bb427ae21 and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/c1/bfab622827026dbd2eba4e2d75a8c523e55dc2 b/test_data/test_repos/test_repo_2/dotGit/objects/c1/bfab622827026dbd2eba4e2d75a8c523e55dc2 deleted file mode 100644 index bd76a1d5..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/c1/bfab622827026dbd2eba4e2d75a8c523e55dc2 and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/d8/ac0b73aeeb45843319cdc5ce506516eb49bf7a b/test_data/test_repos/test_repo_2/dotGit/objects/d8/ac0b73aeeb45843319cdc5ce506516eb49bf7a deleted file mode 100644 index f195924b..00000000 --- a/test_data/test_repos/test_repo_2/dotGit/objects/d8/ac0b73aeeb45843319cdc5ce506516eb49bf7a +++ /dev/null @@ -1 +0,0 @@ -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_2/dotGit/objects/e8/abc5d9c3ea7760bf20054e8dada3832f9a00a9 b/test_data/test_repos/test_repo_2/dotGit/objects/e8/abc5d9c3ea7760bf20054e8dada3832f9a00a9 deleted file mode 100644 index aaa3f442..00000000 Binary files a/test_data/test_repos/test_repo_2/dotGit/objects/e8/abc5d9c3ea7760bf20054e8dada3832f9a00a9 and /dev/null differ diff --git a/test_data/test_repos/test_repo_2/dotGit/objects/f6/1cd8587b7ac1d75a89a0c9af870a2f24c60263 b/test_data/test_repos/test_repo_2/dotGit/objects/f6/1cd8587b7ac1d75a89a0c9af870a2f24c60263 deleted file mode 100644 index fac91610..00000000 --- a/test_data/test_repos/test_repo_2/dotGit/objects/f6/1cd8587b7ac1d75a89a0c9af870a2f24c60263 +++ /dev/null @@ -1,2 +0,0 @@ -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_2/dotGit/refs/heads/master b/test_data/test_repos/test_repo_2/dotGit/refs/heads/master deleted file mode 100644 index 605b789d..00000000 --- a/test_data/test_repos/test_repo_2/dotGit/refs/heads/master +++ /dev/null @@ -1 +0,0 @@ -f61cd8587b7ac1d75a89a0c9af870a2f24c60263 diff --git a/test_data/test_repos/test_repo_2/no_secrets.md b/test_data/test_repos/test_repo_2/no_secrets.md deleted file mode 100644 index 243d535d..00000000 --- a/test_data/test_repos/test_repo_2/no_secrets.md +++ /dev/null @@ -1 +0,0 @@ -### This file does not contain any secrets diff --git a/test_data/test_repos/test_repo_2/secrets.md b/test_data/test_repos/test_repo_2/secrets.md deleted file mode 100644 index 8cb18882..00000000 --- a/test_data/test_repos/test_repo_2/secrets.md +++ /dev/null @@ -1,3 +0,0 @@ -### This file contains some secrets - -again, no more diff --git a/test_data/test_repos/test_repo_3/dotGit/COMMIT_EDITMSG b/test_data/test_repos/test_repo_3/dotGit/COMMIT_EDITMSG deleted file mode 100644 index 5f0f3ea6..00000000 --- a/test_data/test_repos/test_repo_3/dotGit/COMMIT_EDITMSG +++ /dev/null @@ -1 +0,0 @@ -rm secrets diff --git a/test_data/test_repos/test_repo_3/dotGit/HEAD b/test_data/test_repos/test_repo_3/dotGit/HEAD deleted file mode 100644 index cb089cd8..00000000 --- a/test_data/test_repos/test_repo_3/dotGit/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/heads/master diff --git a/test_data/test_repos/test_repo_3/dotGit/config b/test_data/test_repos/test_repo_3/dotGit/config deleted file mode 100644 index 6c9406b7..00000000 --- a/test_data/test_repos/test_repo_3/dotGit/config +++ /dev/null @@ -1,7 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = true - bare = false - logallrefupdates = true - ignorecase = true - precomposeunicode = true diff --git a/test_data/test_repos/test_repo_3/dotGit/description b/test_data/test_repos/test_repo_3/dotGit/description deleted file mode 100644 index 498b267a..00000000 --- a/test_data/test_repos/test_repo_3/dotGit/description +++ /dev/null @@ -1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. diff --git a/test_data/test_repos/test_repo_3/dotGit/index b/test_data/test_repos/test_repo_3/dotGit/index deleted file mode 100644 index f00886b5..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/index and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/info/exclude b/test_data/test_repos/test_repo_3/dotGit/info/exclude deleted file mode 100644 index a5196d1b..00000000 --- a/test_data/test_repos/test_repo_3/dotGit/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# 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_3/dotGit/logs/HEAD b/test_data/test_repos/test_repo_3/dotGit/logs/HEAD deleted file mode 100644 index 33abb9ce..00000000 --- a/test_data/test_repos/test_repo_3/dotGit/logs/HEAD +++ /dev/null @@ -1,14 +0,0 @@ -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 diff --git a/test_data/test_repos/test_repo_3/dotGit/logs/refs/heads/dev b/test_data/test_repos/test_repo_3/dotGit/logs/refs/heads/dev deleted file mode 100644 index b6e04136..00000000 --- a/test_data/test_repos/test_repo_3/dotGit/logs/refs/heads/dev +++ /dev/null @@ -1,3 +0,0 @@ -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_3/dotGit/logs/refs/heads/master b/test_data/test_repos/test_repo_3/dotGit/logs/refs/heads/master deleted file mode 100644 index 4ee29a70..00000000 --- a/test_data/test_repos/test_repo_3/dotGit/logs/refs/heads/master +++ /dev/null @@ -1,10 +0,0 @@ -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 diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/0b/c3a0c9536cc7273b74f48edcc6adead16333f7 b/test_data/test_repos/test_repo_3/dotGit/objects/0b/c3a0c9536cc7273b74f48edcc6adead16333f7 deleted file mode 100644 index 66cbf090..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/0b/c3a0c9536cc7273b74f48edcc6adead16333f7 and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/0e/cd6aeaa0b76f5cad8077ae5be8420457403bfc b/test_data/test_repos/test_repo_3/dotGit/objects/0e/cd6aeaa0b76f5cad8077ae5be8420457403bfc deleted file mode 100644 index df43f260..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/0e/cd6aeaa0b76f5cad8077ae5be8420457403bfc and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/15/40f193bc25b494cde092597a79af04013807ec b/test_data/test_repos/test_repo_3/dotGit/objects/15/40f193bc25b494cde092597a79af04013807ec deleted file mode 100644 index 5ad713e1..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/15/40f193bc25b494cde092597a79af04013807ec and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/17/471a5fda722a9e423f1a0d3f0d267ea009d41c b/test_data/test_repos/test_repo_3/dotGit/objects/17/471a5fda722a9e423f1a0d3f0d267ea009d41c deleted file mode 100644 index 915763a2..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/17/471a5fda722a9e423f1a0d3f0d267ea009d41c and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/18/5715c36f82be353f34845811270a4d0ae4b24e b/test_data/test_repos/test_repo_3/dotGit/objects/18/5715c36f82be353f34845811270a4d0ae4b24e deleted file mode 100644 index 03bf1d87..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/18/5715c36f82be353f34845811270a4d0ae4b24e and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/20/ef26716304570775cb395f37cb2d626bbd0a82 b/test_data/test_repos/test_repo_3/dotGit/objects/20/ef26716304570775cb395f37cb2d626bbd0a82 deleted file mode 100644 index b211c238..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/20/ef26716304570775cb395f37cb2d626bbd0a82 and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/24/3d535d84ed97fbc20d09c9d2c2f417507fe461 b/test_data/test_repos/test_repo_3/dotGit/objects/24/3d535d84ed97fbc20d09c9d2c2f417507fe461 deleted file mode 100644 index 838bf1e1..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/24/3d535d84ed97fbc20d09c9d2c2f417507fe461 and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/3d/dab16668fe919638b76dd48c96bedf0e2276ca b/test_data/test_repos/test_repo_3/dotGit/objects/3d/dab16668fe919638b76dd48c96bedf0e2276ca deleted file mode 100644 index 94c73daf..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/3d/dab16668fe919638b76dd48c96bedf0e2276ca and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/4a/3ffb6df0f421fdf325afae19dc749f8f6b1bfb b/test_data/test_repos/test_repo_3/dotGit/objects/4a/3ffb6df0f421fdf325afae19dc749f8f6b1bfb deleted file mode 100644 index 6efcf07d..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/4a/3ffb6df0f421fdf325afae19dc749f8f6b1bfb and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/4b/a23978297d33c8d7744f059cc5bca2385e262d b/test_data/test_repos/test_repo_3/dotGit/objects/4b/a23978297d33c8d7744f059cc5bca2385e262d deleted file mode 100644 index 15e9e927..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/4b/a23978297d33c8d7744f059cc5bca2385e262d and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/51/f6dcf6b89b93f4075ba92c400b075631a6cc93 b/test_data/test_repos/test_repo_3/dotGit/objects/51/f6dcf6b89b93f4075ba92c400b075631a6cc93 deleted file mode 100644 index 4258020f..00000000 --- a/test_data/test_repos/test_repo_3/dotGit/objects/51/f6dcf6b89b93f4075ba92c400b075631a6cc93 +++ /dev/null @@ -1,3 +0,0 @@ -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_3/dotGit/objects/5d/5c8724e8787e69cebcc9ea4bceb47d9941656e b/test_data/test_repos/test_repo_3/dotGit/objects/5d/5c8724e8787e69cebcc9ea4bceb47d9941656e deleted file mode 100644 index f1090fb3..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/5d/5c8724e8787e69cebcc9ea4bceb47d9941656e and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/5d/630e1163864c8b5616199962390a36a8a53b69 b/test_data/test_repos/test_repo_3/dotGit/objects/5d/630e1163864c8b5616199962390a36a8a53b69 deleted file mode 100644 index d93d42c3..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/5d/630e1163864c8b5616199962390a36a8a53b69 and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/5e/a982157d053ce35a9b79394973c7c8901f317c b/test_data/test_repos/test_repo_3/dotGit/objects/5e/a982157d053ce35a9b79394973c7c8901f317c deleted file mode 100644 index 1fe46e52..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/5e/a982157d053ce35a9b79394973c7c8901f317c and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/64/cfcee9aad1c84581631636bfc54f2050718d1a b/test_data/test_repos/test_repo_3/dotGit/objects/64/cfcee9aad1c84581631636bfc54f2050718d1a deleted file mode 100644 index 261fe7f6..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/64/cfcee9aad1c84581631636bfc54f2050718d1a and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/68/b020592645020c9afb7462e17842a1cc723071 b/test_data/test_repos/test_repo_3/dotGit/objects/68/b020592645020c9afb7462e17842a1cc723071 deleted file mode 100644 index 78d82a50..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/68/b020592645020c9afb7462e17842a1cc723071 and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/69/b7669aa8e125ef0e14abce31911e84dd09e25e b/test_data/test_repos/test_repo_3/dotGit/objects/69/b7669aa8e125ef0e14abce31911e84dd09e25e deleted file mode 100644 index d9448982..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/69/b7669aa8e125ef0e14abce31911e84dd09e25e and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/82/4b8a2b468fcfa244e096bd54b83508b85ef488 b/test_data/test_repos/test_repo_3/dotGit/objects/82/4b8a2b468fcfa244e096bd54b83508b85ef488 deleted file mode 100644 index 24e40b2e..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/82/4b8a2b468fcfa244e096bd54b83508b85ef488 and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/83/c50b16ff4b3149142517a2adc8662f04b5b323 b/test_data/test_repos/test_repo_3/dotGit/objects/83/c50b16ff4b3149142517a2adc8662f04b5b323 deleted file mode 100644 index d5dd750a..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/83/c50b16ff4b3149142517a2adc8662f04b5b323 and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/84/ac4e80d4dbf2c968b64e9d4005f5079795bb81 b/test_data/test_repos/test_repo_3/dotGit/objects/84/ac4e80d4dbf2c968b64e9d4005f5079795bb81 deleted file mode 100644 index 3d207fd1..00000000 --- a/test_data/test_repos/test_repo_3/dotGit/objects/84/ac4e80d4dbf2c968b64e9d4005f5079795bb81 +++ /dev/null @@ -1,3 +0,0 @@ -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_3/dotGit/objects/85/699e429f33e75541530998a5b5d457a12e6285 b/test_data/test_repos/test_repo_3/dotGit/objects/85/699e429f33e75541530998a5b5d457a12e6285 deleted file mode 100644 index 312b2c1d..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/85/699e429f33e75541530998a5b5d457a12e6285 and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/8c/b18882408aad0b2abf556bf1f2c5478ef328f5 b/test_data/test_repos/test_repo_3/dotGit/objects/8c/b18882408aad0b2abf556bf1f2c5478ef328f5 deleted file mode 100644 index d87f9327..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/8c/b18882408aad0b2abf556bf1f2c5478ef328f5 and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/96/c1c0a3632af796efd3942cc1d81d7af48ead3e b/test_data/test_repos/test_repo_3/dotGit/objects/96/c1c0a3632af796efd3942cc1d81d7af48ead3e deleted file mode 100644 index f9dc2d4b..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/96/c1c0a3632af796efd3942cc1d81d7af48ead3e and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/99/6865bb912f3bc45898a370a13aadb315014b55 b/test_data/test_repos/test_repo_3/dotGit/objects/99/6865bb912f3bc45898a370a13aadb315014b55 deleted file mode 100644 index c88cfdb9..00000000 --- a/test_data/test_repos/test_repo_3/dotGit/objects/99/6865bb912f3bc45898a370a13aadb315014b55 +++ /dev/null @@ -1,3 +0,0 @@ -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_3/dotGit/objects/a6/214eec6a6290fec81fe250e5b73b86d634a981 b/test_data/test_repos/test_repo_3/dotGit/objects/a6/214eec6a6290fec81fe250e5b73b86d634a981 deleted file mode 100644 index 2511ae02..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/a6/214eec6a6290fec81fe250e5b73b86d634a981 and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/b1/07a0d7a337f04413efa73d337461f548aef336 b/test_data/test_repos/test_repo_3/dotGit/objects/b1/07a0d7a337f04413efa73d337461f548aef336 deleted file mode 100644 index f3a3ba39..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/b1/07a0d7a337f04413efa73d337461f548aef336 and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/b1/0b3e2cb320a8c211fda94c4567299d37de7776 b/test_data/test_repos/test_repo_3/dotGit/objects/b1/0b3e2cb320a8c211fda94c4567299d37de7776 deleted file mode 100644 index ac93c76f..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/b1/0b3e2cb320a8c211fda94c4567299d37de7776 and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/b2/eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba b/test_data/test_repos/test_repo_3/dotGit/objects/b2/eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba deleted file mode 100644 index 41025422..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/b2/eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/b8/a52870f2b093699e0d98cb896387c87e0c98a6 b/test_data/test_repos/test_repo_3/dotGit/objects/b8/a52870f2b093699e0d98cb896387c87e0c98a6 deleted file mode 100644 index ff582f60..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/b8/a52870f2b093699e0d98cb896387c87e0c98a6 and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/c0/23aab082c73abd327675ad485fe78bb427ae21 b/test_data/test_repos/test_repo_3/dotGit/objects/c0/23aab082c73abd327675ad485fe78bb427ae21 deleted file mode 100644 index 5e07a204..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/c0/23aab082c73abd327675ad485fe78bb427ae21 and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/c1/bfab622827026dbd2eba4e2d75a8c523e55dc2 b/test_data/test_repos/test_repo_3/dotGit/objects/c1/bfab622827026dbd2eba4e2d75a8c523e55dc2 deleted file mode 100644 index bd76a1d5..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/c1/bfab622827026dbd2eba4e2d75a8c523e55dc2 and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/cd/5eb8bef855f73c46b97b4c088badffdc40ebe9 b/test_data/test_repos/test_repo_3/dotGit/objects/cd/5eb8bef855f73c46b97b4c088badffdc40ebe9 deleted file mode 100644 index 1533a3b4..00000000 --- a/test_data/test_repos/test_repo_3/dotGit/objects/cd/5eb8bef855f73c46b97b4c088badffdc40ebe9 +++ /dev/null @@ -1,3 +0,0 @@ -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_3/dotGit/objects/d8/ac0b73aeeb45843319cdc5ce506516eb49bf7a b/test_data/test_repos/test_repo_3/dotGit/objects/d8/ac0b73aeeb45843319cdc5ce506516eb49bf7a deleted file mode 100644 index f195924b..00000000 --- a/test_data/test_repos/test_repo_3/dotGit/objects/d8/ac0b73aeeb45843319cdc5ce506516eb49bf7a +++ /dev/null @@ -1 +0,0 @@ -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_3/dotGit/objects/de/ea550dd6c7acaf0e59432600593533984a2125 b/test_data/test_repos/test_repo_3/dotGit/objects/de/ea550dd6c7acaf0e59432600593533984a2125 deleted file mode 100644 index 7ed4768c..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/de/ea550dd6c7acaf0e59432600593533984a2125 and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/e8/abc5d9c3ea7760bf20054e8dada3832f9a00a9 b/test_data/test_repos/test_repo_3/dotGit/objects/e8/abc5d9c3ea7760bf20054e8dada3832f9a00a9 deleted file mode 100644 index aaa3f442..00000000 Binary files a/test_data/test_repos/test_repo_3/dotGit/objects/e8/abc5d9c3ea7760bf20054e8dada3832f9a00a9 and /dev/null differ diff --git a/test_data/test_repos/test_repo_3/dotGit/objects/f6/1cd8587b7ac1d75a89a0c9af870a2f24c60263 b/test_data/test_repos/test_repo_3/dotGit/objects/f6/1cd8587b7ac1d75a89a0c9af870a2f24c60263 deleted file mode 100644 index fac91610..00000000 --- a/test_data/test_repos/test_repo_3/dotGit/objects/f6/1cd8587b7ac1d75a89a0c9af870a2f24c60263 +++ /dev/null @@ -1,2 +0,0 @@ -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_3/dotGit/refs/heads/dev b/test_data/test_repos/test_repo_3/dotGit/refs/heads/dev deleted file mode 100644 index 986aea9e..00000000 --- a/test_data/test_repos/test_repo_3/dotGit/refs/heads/dev +++ /dev/null @@ -1 +0,0 @@ -64cfcee9aad1c84581631636bfc54f2050718d1a diff --git a/test_data/test_repos/test_repo_3/dotGit/refs/heads/master b/test_data/test_repos/test_repo_3/dotGit/refs/heads/master deleted file mode 100644 index 95078805..00000000 --- a/test_data/test_repos/test_repo_3/dotGit/refs/heads/master +++ /dev/null @@ -1 +0,0 @@ -cd5eb8bef855f73c46b97b4c088badffdc40ebe9 diff --git a/test_data/test_repos/test_repo_3/no_secrets.md b/test_data/test_repos/test_repo_3/no_secrets.md deleted file mode 100644 index 243d535d..00000000 --- a/test_data/test_repos/test_repo_3/no_secrets.md +++ /dev/null @@ -1 +0,0 @@ -### This file does not contain any secrets diff --git a/test_data/test_repos/test_repo_3/secrets.md b/test_data/test_repos/test_repo_3/secrets.md deleted file mode 100644 index 83c50b16..00000000 --- a/test_data/test_repos/test_repo_3/secrets.md +++ /dev/null @@ -1,2 +0,0 @@ -### This file contains some secrets - diff --git a/test_data/test_repos/test_repo_4/dotGit/COMMIT_EDITMSG b/test_data/test_repos/test_repo_4/dotGit/COMMIT_EDITMSG deleted file mode 100644 index 0f22e864..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/COMMIT_EDITMSG +++ /dev/null @@ -1 +0,0 @@ -gitleaks toml diff --git a/test_data/test_repos/test_repo_4/dotGit/HEAD b/test_data/test_repos/test_repo_4/dotGit/HEAD deleted file mode 100644 index cb089cd8..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/HEAD +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 6c9406b7..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/config +++ /dev/null @@ -1,7 +0,0 @@ -[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 deleted file mode 100644 index 498b267a..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/description +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 94eec663..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/index and /dev/null 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 deleted file mode 100644 index a5196d1b..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# 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 deleted file mode 100644 index 99399d23..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/logs/HEAD +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index b6e04136..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/logs/refs/heads/dev +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 6daf2b8c..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/logs/refs/heads/master +++ /dev/null @@ -1,14 +0,0 @@ -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 deleted file mode 100644 index 66cbf090..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/0b/c3a0c9536cc7273b74f48edcc6adead16333f7 and /dev/null 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 deleted file mode 100644 index df43f260..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/0e/cd6aeaa0b76f5cad8077ae5be8420457403bfc and /dev/null 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 deleted file mode 100644 index 5ad713e1..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/15/40f193bc25b494cde092597a79af04013807ec and /dev/null 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 deleted file mode 100644 index 915763a2..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/17/471a5fda722a9e423f1a0d3f0d267ea009d41c and /dev/null 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 deleted file mode 100644 index 46ccb0d0..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/18/51114bbb7484cccd61f18c71649699d73ede6c and /dev/null 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 deleted file mode 100644 index 03bf1d87..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/18/5715c36f82be353f34845811270a4d0ae4b24e and /dev/null 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 deleted file mode 100644 index b211c238..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/20/ef26716304570775cb395f37cb2d626bbd0a82 and /dev/null 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 deleted file mode 100644 index 838bf1e1..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/24/3d535d84ed97fbc20d09c9d2c2f417507fe461 and /dev/null 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 deleted file mode 100644 index 14a0321b..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/29/b514fe50d6a7b2aa18cd581b46a85b84c2d4b3 and /dev/null 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 deleted file mode 100644 index 94c73daf..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/3d/dab16668fe919638b76dd48c96bedf0e2276ca and /dev/null 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 deleted file mode 100644 index 6efcf07d..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/4a/3ffb6df0f421fdf325afae19dc749f8f6b1bfb and /dev/null 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 deleted file mode 100644 index 15e9e927..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/4b/a23978297d33c8d7744f059cc5bca2385e262d and /dev/null 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 deleted file mode 100644 index d6009118..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/4b/c47c2d3aaa25385e3354ea34136456c2260a12 and /dev/null 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 deleted file mode 100644 index 4258020f..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/objects/51/f6dcf6b89b93f4075ba92c400b075631a6cc93 +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 7ab6cbed..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/objects/5a/ccbc40c35906d99f073881fb8746c314f9d59f +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index f1090fb3..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/5d/5c8724e8787e69cebcc9ea4bceb47d9941656e and /dev/null 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 deleted file mode 100644 index d93d42c3..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/5d/630e1163864c8b5616199962390a36a8a53b69 and /dev/null 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 deleted file mode 100644 index 1fe46e52..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/5e/a982157d053ce35a9b79394973c7c8901f317c and /dev/null 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 deleted file mode 100644 index 5b40db65..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/64/99d414147df9f56cbecd26ca710c39e4834024 and /dev/null 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 deleted file mode 100644 index 261fe7f6..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/64/cfcee9aad1c84581631636bfc54f2050718d1a and /dev/null 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 deleted file mode 100644 index fa18daab..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/objects/67/c45b6048e42a2bd5512662ca6cd2bfc74c7842 +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 78d82a50..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/68/b020592645020c9afb7462e17842a1cc723071 and /dev/null 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 deleted file mode 100644 index d9448982..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/69/b7669aa8e125ef0e14abce31911e84dd09e25e and /dev/null 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 deleted file mode 100644 index 1d321659..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/7b/2eba252004b7c867413def2a0984d545daab8b and /dev/null 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 deleted file mode 100644 index 24e40b2e..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/82/4b8a2b468fcfa244e096bd54b83508b85ef488 and /dev/null 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 deleted file mode 100644 index 54afca4e..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/82/8595723b76e4a35b5253d9f2ccb4f897f1845a and /dev/null 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 deleted file mode 100644 index d5dd750a..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/83/c50b16ff4b3149142517a2adc8662f04b5b323 and /dev/null 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 deleted file mode 100644 index 3d207fd1..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/objects/84/ac4e80d4dbf2c968b64e9d4005f5079795bb81 +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 312b2c1d..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/85/699e429f33e75541530998a5b5d457a12e6285 and /dev/null 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 deleted file mode 100644 index d87f9327..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/8c/b18882408aad0b2abf556bf1f2c5478ef328f5 and /dev/null 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 deleted file mode 100644 index f9dc2d4b..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/96/c1c0a3632af796efd3942cc1d81d7af48ead3e and /dev/null 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 deleted file mode 100644 index c88cfdb9..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/objects/99/6865bb912f3bc45898a370a13aadb315014b55 +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 2511ae02..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/a6/214eec6a6290fec81fe250e5b73b86d634a981 and /dev/null 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 deleted file mode 100644 index f3a3ba39..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/b1/07a0d7a337f04413efa73d337461f548aef336 and /dev/null 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 deleted file mode 100644 index ac93c76f..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/b1/0b3e2cb320a8c211fda94c4567299d37de7776 and /dev/null 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 deleted file mode 100644 index 41025422..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/b2/eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba and /dev/null 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 deleted file mode 100644 index 3d9899af..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/b4/70f07d2aaf2b537808b285cab667259b4e0ca7 and /dev/null 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 deleted file mode 100644 index ff582f60..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/b8/a52870f2b093699e0d98cb896387c87e0c98a6 and /dev/null 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 deleted file mode 100644 index 5e07a204..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/c0/23aab082c73abd327675ad485fe78bb427ae21 and /dev/null 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 deleted file mode 100644 index bd76a1d5..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/c1/bfab622827026dbd2eba4e2d75a8c523e55dc2 and /dev/null 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 deleted file mode 100644 index 1533a3b4..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/objects/cd/5eb8bef855f73c46b97b4c088badffdc40ebe9 +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 62c73ed7..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/objects/ce/835da266b3f8c34e4b7f398693ed068f67cb30 +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index f195924b..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/objects/d8/ac0b73aeeb45843319cdc5ce506516eb49bf7a +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 7ed4768c..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/de/ea550dd6c7acaf0e59432600593533984a2125 and /dev/null 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 deleted file mode 100644 index e8012361..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/e0/894b9037d76464dbb8d25768c9a036987d6ace and /dev/null 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 deleted file mode 100644 index aaa3f442..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/e8/abc5d9c3ea7760bf20054e8dada3832f9a00a9 and /dev/null 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 deleted file mode 100644 index 6de09255..00000000 Binary files a/test_data/test_repos/test_repo_4/dotGit/objects/ef/8fd94f0a1a6f503949ac4b56f3604ec4e942e3 and /dev/null 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 deleted file mode 100644 index fac91610..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/objects/f6/1cd8587b7ac1d75a89a0c9af870a2f24c60263 +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index 986aea9e..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/refs/heads/dev +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index b0575580..00000000 --- a/test_data/test_repos/test_repo_4/dotGit/refs/heads/master +++ /dev/null @@ -1 +0,0 @@ -7b2eba252004b7c867413def2a0984d545daab8b diff --git a/test_data/test_repos/test_repo_4/gitleaks.toml b/test_data/test_repos/test_repo_4/gitleaks.toml deleted file mode 100644 index 75cc6c80..00000000 --- a/test_data/test_repos/test_repo_4/gitleaks.toml +++ /dev/null @@ -1,9 +0,0 @@ -[[rules]] - description = "entropy" - regex = '''['|"]([0-9a-zA-Z-._{}$\/\+=]{20,120})['|"]''' - tags = ["entropy"] - [[rules.Entropies]] - Min = "3.3" - Max = "3.5" - Group = "1" - diff --git a/test_data/test_repos/test_repo_4/no_secrets.md b/test_data/test_repos/test_repo_4/no_secrets.md deleted file mode 100644 index 243d535d..00000000 --- a/test_data/test_repos/test_repo_4/no_secrets.md +++ /dev/null @@ -1 +0,0 @@ -### 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 deleted file mode 100644 index 67c45b60..00000000 --- a/test_data/test_repos/test_repo_4/secrets.md +++ /dev/null @@ -1,21 +0,0 @@ -### 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. - diff --git a/test_data/test_repos/test_repo_5/dotGit/COMMIT_EDITMSG b/test_data/test_repos/test_repo_5/dotGit/COMMIT_EDITMSG deleted file mode 100644 index c629f60f..00000000 --- a/test_data/test_repos/test_repo_5/dotGit/COMMIT_EDITMSG +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index cb089cd8..00000000 --- a/test_data/test_repos/test_repo_5/dotGit/HEAD +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 6c9406b7..00000000 --- a/test_data/test_repos/test_repo_5/dotGit/config +++ /dev/null @@ -1,7 +0,0 @@ -[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 deleted file mode 100644 index 498b267a..00000000 --- a/test_data/test_repos/test_repo_5/dotGit/description +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index c4a9350c..00000000 Binary files a/test_data/test_repos/test_repo_5/dotGit/index and /dev/null 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 deleted file mode 100644 index a5196d1b..00000000 --- a/test_data/test_repos/test_repo_5/dotGit/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# 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 deleted file mode 100644 index f4063b51..00000000 --- a/test_data/test_repos/test_repo_5/dotGit/logs/HEAD +++ /dev/null @@ -1,4 +0,0 @@ -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 deleted file mode 100644 index f4063b51..00000000 --- a/test_data/test_repos/test_repo_5/dotGit/logs/refs/heads/master +++ /dev/null @@ -1,4 +0,0 @@ -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 deleted file mode 100644 index 33381fc0..00000000 Binary files a/test_data/test_repos/test_repo_5/dotGit/objects/00/9114bb4fc3521c478aeb1666f4fc87a4fe2964 and /dev/null 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 deleted file mode 100644 index cadf400d..00000000 --- a/test_data/test_repos/test_repo_5/dotGit/objects/1f/2a4abc47dabf991e6af6f9770867ce0ac1f360 +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index d98e1094..00000000 Binary files a/test_data/test_repos/test_repo_5/dotGit/objects/2b/8f95ef90b07889acd0607a91a22bee87ac4a46 and /dev/null 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 deleted file mode 100644 index 9e502d7f..00000000 --- a/test_data/test_repos/test_repo_5/dotGit/objects/54/7bc0caa26ce3f20bea9ad9bb0f7e3e9dc749ec +++ /dev/null @@ -1,4 +0,0 @@ -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 deleted file mode 100644 index 1dbbf398..00000000 Binary files a/test_data/test_repos/test_repo_5/dotGit/objects/5d/bb39e8aa13063310c7cd4787a62d3119674be0 and /dev/null 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 deleted file mode 100644 index 058a1664..00000000 Binary files a/test_data/test_repos/test_repo_5/dotGit/objects/81/723dcbff8ae8bbcb2fb3051bfd12c79bd4b8fb and /dev/null 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 deleted file mode 100644 index a0c87faa..00000000 Binary files a/test_data/test_repos/test_repo_5/dotGit/objects/97/2ea8fcf4f3d9a216644c8eb11df1382b6e02ab and /dev/null 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 deleted file mode 100644 index 8cf14f84..00000000 --- a/test_data/test_repos/test_repo_5/dotGit/objects/a4/c9fb737d5552fd96fce5cc7eedb23353ba9ed0 +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index d3f4ab8c..00000000 --- a/test_data/test_repos/test_repo_5/dotGit/objects/ca/71fcdeda15f25f0cc661d90e8785c255925c27 +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 54825cb8..00000000 Binary files a/test_data/test_repos/test_repo_5/dotGit/objects/cd/4f2dbbeb8c026390c7e31fd89c624f0552bdc2 and /dev/null 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 deleted file mode 100644 index 0f4f4957..00000000 Binary files a/test_data/test_repos/test_repo_5/dotGit/objects/f6/878b4d8b01947b3bd9bf23de8446cb6cae335e and /dev/null 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 deleted file mode 100644 index 6ea38dfc..00000000 Binary files a/test_data/test_repos/test_repo_5/dotGit/objects/fe/2074a5245bc33007255e6f4fe2e6e7464f2b55 and /dev/null 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 deleted file mode 100644 index 14220c0e..00000000 --- a/test_data/test_repos/test_repo_5/dotGit/refs/heads/master +++ /dev/null @@ -1 +0,0 @@ -a4c9fb737d5552fd96fce5cc7eedb23353ba9ed0 diff --git a/test_data/test_repos/test_repo_5/notes.md b/test_data/test_repos/test_repo_5/notes.md deleted file mode 100644 index 972ea8fc..00000000 --- a/test_data/test_repos/test_repo_5/notes.md +++ /dev/null @@ -1 +0,0 @@ -Init diff --git a/test_data/test_repos/test_repo_5/secrets.py b/test_data/test_repos/test_repo_5/secrets.py deleted file mode 100644 index 009114bb..00000000 --- a/test_data/test_repos/test_repo_5/secrets.py +++ /dev/null @@ -1,9 +0,0 @@ -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) - diff --git a/test_data/test_repos/test_repo_6/application.yaml b/test_data/test_repos/test_repo_6/application.yaml deleted file mode 100644 index dd6e8207..00000000 --- a/test_data/test_repos/test_repo_6/application.yaml +++ /dev/null @@ -1,3 +0,0 @@ -appName: "Gitleaks-Testing-App" -api_token: exampleSecretPassword -db_password: verySecretProductionPassword \ No newline at end of file diff --git a/test_data/test_repos/test_repo_6/config/application.properties b/test_data/test_repos/test_repo_6/config/application.properties deleted file mode 100644 index 5cb000d0..00000000 --- a/test_data/test_repos/test_repo_6/config/application.properties +++ /dev/null @@ -1,3 +0,0 @@ -language=en_EN -apiToken=d41d8cd98f00b204e9800998ecf8427e -aws_access_key_id=AKIAIO5FODNN7EXAMPLE \ No newline at end of file diff --git a/test_data/test_repos/test_repo_6/dotGit/COMMIT_EDITMSG b/test_data/test_repos/test_repo_6/dotGit/COMMIT_EDITMSG deleted file mode 100644 index 60c9e47f..00000000 --- a/test_data/test_repos/test_repo_6/dotGit/COMMIT_EDITMSG +++ /dev/null @@ -1 +0,0 @@ -comment diff --git a/test_data/test_repos/test_repo_6/dotGit/HEAD b/test_data/test_repos/test_repo_6/dotGit/HEAD deleted file mode 100644 index cb089cd8..00000000 --- a/test_data/test_repos/test_repo_6/dotGit/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/heads/master diff --git a/test_data/test_repos/test_repo_6/dotGit/config b/test_data/test_repos/test_repo_6/dotGit/config deleted file mode 100644 index 6c9406b7..00000000 --- a/test_data/test_repos/test_repo_6/dotGit/config +++ /dev/null @@ -1,7 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = true - bare = false - logallrefupdates = true - ignorecase = true - precomposeunicode = true diff --git a/test_data/test_repos/test_repo_6/dotGit/description b/test_data/test_repos/test_repo_6/dotGit/description deleted file mode 100644 index 498b267a..00000000 --- a/test_data/test_repos/test_repo_6/dotGit/description +++ /dev/null @@ -1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. diff --git a/test_data/test_repos/test_repo_6/dotGit/index b/test_data/test_repos/test_repo_6/dotGit/index deleted file mode 100644 index 9a4f995b..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/index and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/info/exclude b/test_data/test_repos/test_repo_6/dotGit/info/exclude deleted file mode 100644 index a5196d1b..00000000 --- a/test_data/test_repos/test_repo_6/dotGit/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# 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_6/dotGit/logs/HEAD b/test_data/test_repos/test_repo_6/dotGit/logs/HEAD deleted file mode 100644 index 1dee1f5f..00000000 --- a/test_data/test_repos/test_repo_6/dotGit/logs/HEAD +++ /dev/null @@ -1,4 +0,0 @@ -0000000000000000000000000000000000000000 6557c92612d3b35979bd426d429255b3bf9fab74 zach rice 1571923767 -0400 commit (initial): commit 1 with secrets -6557c92612d3b35979bd426d429255b3bf9fab74 d274003914c707212cbe84e3e466a00013ccb639 zach rice 1571925818 -0400 commit: comment -d274003914c707212cbe84e3e466a00013ccb639 98b6c7cb3fb29a5993c4c95c56a2dc53050b9247 Noel Algora 1582571595 -0500 commit: Adding some secrets in config folder -98b6c7cb3fb29a5993c4c95c56a2dc53050b9247 98b6c7cb3fb29a5993c4c95c56a2dc53050b9247 Noel Algora 1582571636 -0500 discard: [bc379e22c22a97ca5ffc871c1449af854f6f26c4] diff --git a/test_data/test_repos/test_repo_6/dotGit/logs/refs/heads/master b/test_data/test_repos/test_repo_6/dotGit/logs/refs/heads/master deleted file mode 100644 index 1112c7db..00000000 --- a/test_data/test_repos/test_repo_6/dotGit/logs/refs/heads/master +++ /dev/null @@ -1,3 +0,0 @@ -0000000000000000000000000000000000000000 6557c92612d3b35979bd426d429255b3bf9fab74 zach rice 1571923767 -0400 commit (initial): commit 1 with secrets -6557c92612d3b35979bd426d429255b3bf9fab74 d274003914c707212cbe84e3e466a00013ccb639 zach rice 1571925818 -0400 commit: comment -d274003914c707212cbe84e3e466a00013ccb639 98b6c7cb3fb29a5993c4c95c56a2dc53050b9247 Noel Algora 1582571595 -0500 commit: Adding some secrets in config folder diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/10/fa14c5ab0134436e2ae435138bf921eb477c60 b/test_data/test_repos/test_repo_6/dotGit/objects/10/fa14c5ab0134436e2ae435138bf921eb477c60 deleted file mode 100644 index c32cf91d..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/10/fa14c5ab0134436e2ae435138bf921eb477c60 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/3a/76f3781306faf5612017bf18a4b4bdb9f927bf b/test_data/test_repos/test_repo_6/dotGit/objects/3a/76f3781306faf5612017bf18a4b4bdb9f927bf deleted file mode 100644 index 0bd54d2c..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/3a/76f3781306faf5612017bf18a4b4bdb9f927bf and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/41/42082bcb939bbc17985a69ba748491ac6b62a5 b/test_data/test_repos/test_repo_6/dotGit/objects/41/42082bcb939bbc17985a69ba748491ac6b62a5 deleted file mode 100644 index dba98289..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/41/42082bcb939bbc17985a69ba748491ac6b62a5 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/49/8b267a8c7812490d6479839c5577eaaec79d62 b/test_data/test_repos/test_repo_6/dotGit/objects/49/8b267a8c7812490d6479839c5577eaaec79d62 deleted file mode 100644 index b558235f..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/49/8b267a8c7812490d6479839c5577eaaec79d62 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/5c/b000d0f4965e9b0c080814478dbf4e87c114c7 b/test_data/test_repos/test_repo_6/dotGit/objects/5c/b000d0f4965e9b0c080814478dbf4e87c114c7 deleted file mode 100644 index 8226e026..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/5c/b000d0f4965e9b0c080814478dbf4e87c114c7 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/60/c9e47f150a6b713e247e6105b77f1b961f844f b/test_data/test_repos/test_repo_6/dotGit/objects/60/c9e47f150a6b713e247e6105b77f1b961f844f deleted file mode 100644 index e212d90f..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/60/c9e47f150a6b713e247e6105b77f1b961f844f and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/61/87dbf4390fc6e28445dd3d988aefb9d1111988 b/test_data/test_repos/test_repo_6/dotGit/objects/61/87dbf4390fc6e28445dd3d988aefb9d1111988 deleted file mode 100644 index eb42e868..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/61/87dbf4390fc6e28445dd3d988aefb9d1111988 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/65/57c92612d3b35979bd426d429255b3bf9fab74 b/test_data/test_repos/test_repo_6/dotGit/objects/65/57c92612d3b35979bd426d429255b3bf9fab74 deleted file mode 100644 index edf7d2fb..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/65/57c92612d3b35979bd426d429255b3bf9fab74 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/69/465772e5c3a14379da6c369cdb46edbaa6d097 b/test_data/test_repos/test_repo_6/dotGit/objects/69/465772e5c3a14379da6c369cdb46edbaa6d097 deleted file mode 100644 index e59352e9..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/69/465772e5c3a14379da6c369cdb46edbaa6d097 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/6a/756416384c210ada2631f17862f5c01fffa478 b/test_data/test_repos/test_repo_6/dotGit/objects/6a/756416384c210ada2631f17862f5c01fffa478 deleted file mode 100644 index 072ee533..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/6a/756416384c210ada2631f17862f5c01fffa478 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/6c/9406b7d9320db083eca69b3f8bee9a6c7b50d4 b/test_data/test_repos/test_repo_6/dotGit/objects/6c/9406b7d9320db083eca69b3f8bee9a6c7b50d4 deleted file mode 100644 index 0d57232e..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/6c/9406b7d9320db083eca69b3f8bee9a6c7b50d4 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/6c/bef5c370d8c3486ca85423dd70440c5e0a2aa2 b/test_data/test_repos/test_repo_6/dotGit/objects/6c/bef5c370d8c3486ca85423dd70440c5e0a2aa2 deleted file mode 100644 index b098b0b6..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/6c/bef5c370d8c3486ca85423dd70440c5e0a2aa2 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/80/8b12c5ca4b142367932e7045d555a639fc148c b/test_data/test_repos/test_repo_6/dotGit/objects/80/8b12c5ca4b142367932e7045d555a639fc148c deleted file mode 100644 index 9cd8d694..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/80/8b12c5ca4b142367932e7045d555a639fc148c and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/80/ba94135cc378364af9d3cb2450df48e51faf2c b/test_data/test_repos/test_repo_6/dotGit/objects/80/ba94135cc378364af9d3cb2450df48e51faf2c deleted file mode 100644 index 86d326dd..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/80/ba94135cc378364af9d3cb2450df48e51faf2c and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/98/b6c7cb3fb29a5993c4c95c56a2dc53050b9247 b/test_data/test_repos/test_repo_6/dotGit/objects/98/b6c7cb3fb29a5993c4c95c56a2dc53050b9247 deleted file mode 100644 index f3467bbd..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/98/b6c7cb3fb29a5993c4c95c56a2dc53050b9247 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/9e/523225b31add24e72f2feb0b2645cfb36542dc b/test_data/test_repos/test_repo_6/dotGit/objects/9e/523225b31add24e72f2feb0b2645cfb36542dc deleted file mode 100644 index 2103921e..00000000 --- a/test_data/test_repos/test_repo_6/dotGit/objects/9e/523225b31add24e72f2feb0b2645cfb36542dc +++ /dev/null @@ -1,3 +0,0 @@ -xMŽO ‚@Å;ï§è`‘%:XjE ¢<ɺ;˜¤»°³~ûÌ -z§÷`~ïMVê Fþ´Ó…PƒÒnÜHZ"ƒ•-xIL”Eca™¶Ú÷>±Ç ‘C¾ã¶® «,�¬)TNÀé¿Èm7 -]U¨$J¯%ù“R.¥w¬ÓBΜ`³Ö‡q|÷ûIt vÇmôÝy_6ïÙ?¨!æ‹0Šb´�ÔW\>ε9æ …êr:-†Aò+a}Æ^K§N$ \ No newline at end of file diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/a1/ddd32febf3bde66331218f877ff637c85c5f92 b/test_data/test_repos/test_repo_6/dotGit/objects/a1/ddd32febf3bde66331218f877ff637c85c5f92 deleted file mode 100644 index 0867e75c..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/a1/ddd32febf3bde66331218f877ff637c85c5f92 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/a1/fd29ec14823d8bc4a8d1a2cfe35451580f5118 b/test_data/test_repos/test_repo_6/dotGit/objects/a1/fd29ec14823d8bc4a8d1a2cfe35451580f5118 deleted file mode 100644 index b72c5f77..00000000 --- a/test_data/test_repos/test_repo_6/dotGit/objects/a1/fd29ec14823d8bc4a8d1a2cfe35451580f5118 +++ /dev/null @@ -1,3 +0,0 @@ -xuPMOÃ0 åÚüŠGV1lc.LEB`†Ä¸!Miç*a]R5!þ;N‡øââÄö{ÏÏÎ+—ãìôt§³;Ì�z-:¢ƒK zQ«º"hç–ðEcê€à°RKÂÚ\‰zí5\Œ³~À¬™¦/š7Ì~Ú‘‡ªª_h­|PMÀÆ�næªXf]Rv�†ž¨ßTVÙh²Ì$ÈmSþÔ„ñÑׂ�D+dUÎþƒæF\âˆ%­Z}VJ{²n¨ßPAæ™ä@S"�è[Èôz2›ß=Üß̧w³Éôv~5}¸�IÁ¬HLv,’�nu"C¦F¢_ÅÏ?¼dáD’гª 9¬){üeÆŠ/,Ó$axZòu ƒgm -‹(·jÏòc•~Üøé[+Ñ9ÈÞ%.öN"s<æ¸=àVéŌ⯠-~L–îïbÔãþÂY¥eMª$ \ No newline at end of file diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/a4/fa2187727281aea78d7c3aaebdb4b924fc4e4d b/test_data/test_repos/test_repo_6/dotGit/objects/a4/fa2187727281aea78d7c3aaebdb4b924fc4e4d deleted file mode 100644 index 0aabdd40..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/a4/fa2187727281aea78d7c3aaebdb4b924fc4e4d and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/a5/196d1be8fb59edf8062bef36d3a602e0812139 b/test_data/test_repos/test_repo_6/dotGit/objects/a5/196d1be8fb59edf8062bef36d3a602e0812139 deleted file mode 100644 index 62de872c..00000000 --- a/test_data/test_repos/test_repo_6/dotGit/objects/a5/196d1be8fb59edf8062bef36d3a602e0812139 +++ /dev/null @@ -1 +0,0 @@ -x-�±jÃ0„;ç)<¤ µSJ§B¦@¦¾Aé Û¿lI¤_¸Yú쑃·ãø¾»Þ³ÇûÇÛSƒÉ)|n­ó’ѶÔYÒäoðe”Ö&†SW©£‹–Ç­Þ5ør±:EV“‹Óûf“C�¨¹«ä… ×Ä_�Yý .âüZu�¥÷\\œ°°ø½Tz"GdQÐÖ…íW£*)f<—¸=¬ÎâÆ‚ÅD…%Ë£ù¬ò¡û¦ùYÃÿîá›SC \ No newline at end of file diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/a5/d7b84a673458d14d9aab082183a1968c2c7492 b/test_data/test_repos/test_repo_6/dotGit/objects/a5/d7b84a673458d14d9aab082183a1968c2c7492 deleted file mode 100644 index cafdfdb1..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/a5/d7b84a673458d14d9aab082183a1968c2c7492 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/b5/8d1184a9d43a39c0d95f32453efc78581877d6 b/test_data/test_repos/test_repo_6/dotGit/objects/b5/8d1184a9d43a39c0d95f32453efc78581877d6 deleted file mode 100644 index 043d9c54..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/b5/8d1184a9d43a39c0d95f32453efc78581877d6 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/bc/379e22c22a97ca5ffc871c1449af854f6f26c4 b/test_data/test_repos/test_repo_6/dotGit/objects/bc/379e22c22a97ca5ffc871c1449af854f6f26c4 deleted file mode 100644 index ad8ee05b..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/bc/379e22c22a97ca5ffc871c1449af854f6f26c4 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/c9/8e6c52cbd1f50de572ff12a3441271fccff705 b/test_data/test_repos/test_repo_6/dotGit/objects/c9/8e6c52cbd1f50de572ff12a3441271fccff705 deleted file mode 100644 index 14206b0b..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/c9/8e6c52cbd1f50de572ff12a3441271fccff705 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/cb/089cd89a7d7686d284d8761201649346b5aa1c b/test_data/test_repos/test_repo_6/dotGit/objects/cb/089cd89a7d7686d284d8761201649346b5aa1c deleted file mode 100644 index 17c8d93c..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/cb/089cd89a7d7686d284d8761201649346b5aa1c and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/cb/19a50e8cdeb7011eccdb13f3b739f00d775bab b/test_data/test_repos/test_repo_6/dotGit/objects/cb/19a50e8cdeb7011eccdb13f3b739f00d775bab deleted file mode 100644 index 692983a5..00000000 --- a/test_data/test_repos/test_repo_6/dotGit/objects/cb/19a50e8cdeb7011eccdb13f3b739f00d775bab +++ /dev/null @@ -1,2 +0,0 @@ -x��Í -1 „½êS䨥MÚf+"¾J“­XØY ‚OïŠ^¼íÀ00‡áéFB\™…‚à=kÄ`±%!9Jë0ÌŽè½�\ã5 ;x%½ÁT4Ãéõ‰érŸÆ:}*ÝAÇþ Ö³�HöƳžÛ¾TØ–¡Ô’ºÝ~�…g©7xd�r}l3´Èó.Eë” £E•ܸLÙ…�æÇ–T%P\ ëÛüÁ~óP7oq,\é \ No newline at end of file diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/d2/74003914c707212cbe84e3e466a00013ccb639 b/test_data/test_repos/test_repo_6/dotGit/objects/d2/74003914c707212cbe84e3e466a00013ccb639 deleted file mode 100644 index 142e1a6d..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/d2/74003914c707212cbe84e3e466a00013ccb639 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/db/4ccd6cc9ef282e9bf2f8c5f7877f0d40520724 b/test_data/test_repos/test_repo_6/dotGit/objects/db/4ccd6cc9ef282e9bf2f8c5f7877f0d40520724 deleted file mode 100644 index 7f843177..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/db/4ccd6cc9ef282e9bf2f8c5f7877f0d40520724 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/dd/6e8207f130e113c97f5ed15238e7901290ee42 b/test_data/test_repos/test_repo_6/dotGit/objects/dd/6e8207f130e113c97f5ed15238e7901290ee42 deleted file mode 100644 index db5b596e..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/dd/6e8207f130e113c97f5ed15238e7901290ee42 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/dd/cd9ac6904950dcc48e4c04ba043707e9e0117f b/test_data/test_repos/test_repo_6/dotGit/objects/dd/cd9ac6904950dcc48e4c04ba043707e9e0117f deleted file mode 100644 index 44c4916c..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/dd/cd9ac6904950dcc48e4c04ba043707e9e0117f and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/e6/73bb3980f3c286291809e05f80873852bc3e9c b/test_data/test_repos/test_repo_6/dotGit/objects/e6/73bb3980f3c286291809e05f80873852bc3e9c deleted file mode 100644 index 144d4077..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/e6/73bb3980f3c286291809e05f80873852bc3e9c and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/e9/e5396f7e52aa48de485b4836ebb041cc7f7c46 b/test_data/test_repos/test_repo_6/dotGit/objects/e9/e5396f7e52aa48de485b4836ebb041cc7f7c46 deleted file mode 100644 index da7e1c7c..00000000 Binary files a/test_data/test_repos/test_repo_6/dotGit/objects/e9/e5396f7e52aa48de485b4836ebb041cc7f7c46 and /dev/null differ diff --git a/test_data/test_repos/test_repo_6/dotGit/objects/ec/17ec1939b7c3e86b7cb6c0c4de6b0818a7e75e b/test_data/test_repos/test_repo_6/dotGit/objects/ec/17ec1939b7c3e86b7cb6c0c4de6b0818a7e75e deleted file mode 100644 index d7558de5..00000000 --- a/test_data/test_repos/test_repo_6/dotGit/objects/ec/17ec1939b7c3e86b7cb6c0c4de6b0818a7e75e +++ /dev/null @@ -1,2 +0,0 @@ -x-ÍK‚0P×9E [�r§Kïà&0H -Ȥ&ƒ…·7~–Ý]õÚ/âq¾\õ±ó!vyrµ«q‹à�Ö´0&‘¹×� &Hʉ”AHÔÏ< dÉÁD_E±e† 1595702825 -0400 clone: from https://github.com/zricethezav/test_repo_8.git diff --git a/test_data/test_repos/test_repo_8/dotGit/logs/refs/heads/master b/test_data/test_repos/test_repo_8/dotGit/logs/refs/heads/master deleted file mode 100644 index c1e43ae7..00000000 --- a/test_data/test_repos/test_repo_8/dotGit/logs/refs/heads/master +++ /dev/null @@ -1 +0,0 @@ -0000000000000000000000000000000000000000 748f11eaf2c38c3cf0ac6a22e44208777e79fa6f Zach Rice 1595702825 -0400 clone: from https://github.com/zricethezav/test_repo_8.git diff --git a/test_data/test_repos/test_repo_8/dotGit/logs/refs/remotes/origin/HEAD b/test_data/test_repos/test_repo_8/dotGit/logs/refs/remotes/origin/HEAD deleted file mode 100644 index c1e43ae7..00000000 --- a/test_data/test_repos/test_repo_8/dotGit/logs/refs/remotes/origin/HEAD +++ /dev/null @@ -1 +0,0 @@ -0000000000000000000000000000000000000000 748f11eaf2c38c3cf0ac6a22e44208777e79fa6f Zach Rice 1595702825 -0400 clone: from https://github.com/zricethezav/test_repo_8.git diff --git a/test_data/test_repos/test_repo_8/dotGit/objects/0b/aadf22eda42ba55c4fec3e14973edc6cec783a b/test_data/test_repos/test_repo_8/dotGit/objects/0b/aadf22eda42ba55c4fec3e14973edc6cec783a deleted file mode 100644 index 1f425766..00000000 --- a/test_data/test_repos/test_repo_8/dotGit/objects/0b/aadf22eda42ba55c4fec3e14973edc6cec783a +++ /dev/null @@ -1,4 +0,0 @@ -xuRÉnã8œ³¾‚@�ÄZ¨ è„TdYqäEŠ×K@RÔb[–LQV¬¯O7èÃÌ»ÔC¡^…z¬®ªRG×þ’‚s 2èºÐ´lJufÛ”SmÇrRƒfZšêŽ�ê*4u¥!‚_$ åÌ6 �šaÚ :*µÓâªî:)· KÌŒgü­· …†ûpÊtj¸nFM]s8‡�e®ªiZjd6#.QH'‹Z€aw—Œƒïƒx€xiD-ëKEÊó3««¿�fº¦­ê–j�'ªªò`©$ (å´£àû¥¼9ß_òRýŸ³¼ÉÛ2Oÿöƒp–Á$a0GëØÿÉ+@}‹F{­ðê-›Nµ…ã™]áâfˆ°G(�†!òÄ~ð4áÒ‘úfLÔû—~9š>¶›Ó¹Û|xóþ€ ʰÃw iï«à–ònN‰#Í>¾ÎǘàÅy»vŠt¾Šö´‰fazñ�.CŠ¢‰w5o{ý}t�,'Fñ ¡Äóߨ–Å_ì ÓXÏB¯â÷­y<Ö¢e¥)¨lb3Q@\‡ñ¨1d†ü#´ÛÛr¶ÓG˜«�÷±WΤìó­iä§0y_ÌÔà.Û4êG:ZìÛ`2™( ›M§$zõÔè÷E8>ýk»,o²º-† -LJ'zÇîv¸.ñán 9m±ø¥En) ×‹ä}2ŽŽFP¿n/Á»7 %J®î~—0'¯¨» ö;˜Ÿ®«‰9ЈR»ðf±ì“y'ò -øAOh­üêÌŸ¿þwcJÄEÎAÓ�Ï@ðkÇ[ ¾é u~þ”,ø@nã?ö§†HVHçg›“�À�Ä‘p„‡ ½¬ÚÂ=ÅŒ£ÄãáSá©Ûvw½*©ôiªªÀRà7Á)ŠÉôÌd–i«zšáÌ0m˜ÊŒ˜B šc© Ã�ZÌi-€œbœ1U¥ÖÔë:Ñ%�*šmBšƒPbZÿõjPÚÉ,¬É²¥œ)*¶˜Flƒê–LTU–‰"á^ L -Ì`] -žþ9økËÑÔ.Ï?HSýŠn리–žäÏ«Ò'ýüJP¼Rø} -žë†ÓöüxÍKQôéÖò6ïÊ<ý–3ñ‚XzKÞmâõä‹K@·Î!BÎB+g2ßW‹·µ35‹£öq…<¸!”ùA€œ²� Ûe”Íp…®Ó½}¹�$`LœÕ)Q£—°¸Äè^Ò…u8.šážTs@â8F†«ØÃ›ÊÇ—õUÓù¶‰NLënåó�ûÍ=ÉX�?|÷Ñi¥Ÿˆ“DiÂín}བྷzrXoº8!^³XmÇm©—K eµ›¸§B› ½ºôµÃ¡×s¦T—+Šxn÷óñu÷ü˜ôÓª•å5W½ò¨ɺ—€=«¶¡zàGy£—íþ�Ù‘æN{\ 1571923767 -0400 commit (initial): commit 1 with secrets -6557c92612d3b35979bd426d429255b3bf9fab74 d274003914c707212cbe84e3e466a00013ccb639 zach rice 1571925818 -0400 commit: comment -d274003914c707212cbe84e3e466a00013ccb639 8d1fb60d2d80f0590f191ed5ace1e45ef780909a Zach Rice 1597253780 -0400 commit: gitleaks allow secret diff --git a/test_data/test_repos/test_repo_9/dotGit/logs/refs/heads/master b/test_data/test_repos/test_repo_9/dotGit/logs/refs/heads/master deleted file mode 100644 index 8244f382..00000000 --- a/test_data/test_repos/test_repo_9/dotGit/logs/refs/heads/master +++ /dev/null @@ -1,3 +0,0 @@ -0000000000000000000000000000000000000000 6557c92612d3b35979bd426d429255b3bf9fab74 zach rice 1571923767 -0400 commit (initial): commit 1 with secrets -6557c92612d3b35979bd426d429255b3bf9fab74 d274003914c707212cbe84e3e466a00013ccb639 zach rice 1571925818 -0400 commit: comment -d274003914c707212cbe84e3e466a00013ccb639 8d1fb60d2d80f0590f191ed5ace1e45ef780909a Zach Rice 1597253780 -0400 commit: gitleaks allow secret diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/10/fa14c5ab0134436e2ae435138bf921eb477c60 b/test_data/test_repos/test_repo_9/dotGit/objects/10/fa14c5ab0134436e2ae435138bf921eb477c60 deleted file mode 100644 index c32cf91d..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/10/fa14c5ab0134436e2ae435138bf921eb477c60 and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/3a/76f3781306faf5612017bf18a4b4bdb9f927bf b/test_data/test_repos/test_repo_9/dotGit/objects/3a/76f3781306faf5612017bf18a4b4bdb9f927bf deleted file mode 100644 index 0bd54d2c..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/3a/76f3781306faf5612017bf18a4b4bdb9f927bf and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/41/42082bcb939bbc17985a69ba748491ac6b62a5 b/test_data/test_repos/test_repo_9/dotGit/objects/41/42082bcb939bbc17985a69ba748491ac6b62a5 deleted file mode 100644 index dba98289..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/41/42082bcb939bbc17985a69ba748491ac6b62a5 and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/49/8b267a8c7812490d6479839c5577eaaec79d62 b/test_data/test_repos/test_repo_9/dotGit/objects/49/8b267a8c7812490d6479839c5577eaaec79d62 deleted file mode 100644 index b558235f..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/49/8b267a8c7812490d6479839c5577eaaec79d62 and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/60/c9e47f150a6b713e247e6105b77f1b961f844f b/test_data/test_repos/test_repo_9/dotGit/objects/60/c9e47f150a6b713e247e6105b77f1b961f844f deleted file mode 100644 index e212d90f..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/60/c9e47f150a6b713e247e6105b77f1b961f844f and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/61/87dbf4390fc6e28445dd3d988aefb9d1111988 b/test_data/test_repos/test_repo_9/dotGit/objects/61/87dbf4390fc6e28445dd3d988aefb9d1111988 deleted file mode 100644 index eb42e868..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/61/87dbf4390fc6e28445dd3d988aefb9d1111988 and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/65/57c92612d3b35979bd426d429255b3bf9fab74 b/test_data/test_repos/test_repo_9/dotGit/objects/65/57c92612d3b35979bd426d429255b3bf9fab74 deleted file mode 100644 index edf7d2fb..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/65/57c92612d3b35979bd426d429255b3bf9fab74 and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/6a/756416384c210ada2631f17862f5c01fffa478 b/test_data/test_repos/test_repo_9/dotGit/objects/6a/756416384c210ada2631f17862f5c01fffa478 deleted file mode 100644 index 072ee533..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/6a/756416384c210ada2631f17862f5c01fffa478 and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/6c/9406b7d9320db083eca69b3f8bee9a6c7b50d4 b/test_data/test_repos/test_repo_9/dotGit/objects/6c/9406b7d9320db083eca69b3f8bee9a6c7b50d4 deleted file mode 100644 index 0d57232e..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/6c/9406b7d9320db083eca69b3f8bee9a6c7b50d4 and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/6c/bef5c370d8c3486ca85423dd70440c5e0a2aa2 b/test_data/test_repos/test_repo_9/dotGit/objects/6c/bef5c370d8c3486ca85423dd70440c5e0a2aa2 deleted file mode 100644 index b098b0b6..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/6c/bef5c370d8c3486ca85423dd70440c5e0a2aa2 and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/80/8b12c5ca4b142367932e7045d555a639fc148c b/test_data/test_repos/test_repo_9/dotGit/objects/80/8b12c5ca4b142367932e7045d555a639fc148c deleted file mode 100644 index 9cd8d694..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/80/8b12c5ca4b142367932e7045d555a639fc148c and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/80/ba94135cc378364af9d3cb2450df48e51faf2c b/test_data/test_repos/test_repo_9/dotGit/objects/80/ba94135cc378364af9d3cb2450df48e51faf2c deleted file mode 100644 index 86d326dd..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/80/ba94135cc378364af9d3cb2450df48e51faf2c and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/8d/1fb60d2d80f0590f191ed5ace1e45ef780909a b/test_data/test_repos/test_repo_9/dotGit/objects/8d/1fb60d2d80f0590f191ed5ace1e45ef780909a deleted file mode 100644 index e086a5ae..00000000 --- a/test_data/test_repos/test_repo_9/dotGit/objects/8d/1fb60d2d80f0590f191ed5ace1e45ef780909a +++ /dev/null @@ -1,2 +0,0 @@ -x•ŽM -Â0F]çseò߀ˆgpén2�Úbk$�žÞzWEãmìö¸eÕF·wMþõÔ¯*t_�æ¹¼a®ÒÔ­¼G* \ No newline at end of file diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/9e/523225b31add24e72f2feb0b2645cfb36542dc b/test_data/test_repos/test_repo_9/dotGit/objects/9e/523225b31add24e72f2feb0b2645cfb36542dc deleted file mode 100644 index 2103921e..00000000 --- a/test_data/test_repos/test_repo_9/dotGit/objects/9e/523225b31add24e72f2feb0b2645cfb36542dc +++ /dev/null @@ -1,3 +0,0 @@ -xMŽO ‚@Å;ï§è`‘%:XjE ¢<ɺ;˜¤»°³~ûÌ -z§÷`~ïMVê Fþ´Ó…PƒÒnÜHZ"ƒ•-xIL”Eca™¶Ú÷>±Ç ‘C¾ã¶® «,�¬)TNÀé¿Èm7 -]U¨$J¯%ù“R.¥w¬ÓBΜ`³Ö‡q|÷ûIt vÇmôÝy_6ïÙ?¨!æ‹0Šb´�ÔW\>ε9æ …êr:-†Aò+a}Æ^K§N$ \ No newline at end of file diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/a1/fd29ec14823d8bc4a8d1a2cfe35451580f5118 b/test_data/test_repos/test_repo_9/dotGit/objects/a1/fd29ec14823d8bc4a8d1a2cfe35451580f5118 deleted file mode 100644 index b72c5f77..00000000 --- a/test_data/test_repos/test_repo_9/dotGit/objects/a1/fd29ec14823d8bc4a8d1a2cfe35451580f5118 +++ /dev/null @@ -1,3 +0,0 @@ -xuPMOÃ0 åÚüŠGV1lc.LEB`†Ä¸!Miç*a]R5!þ;N‡øââÄö{ÏÏÎ+—ãìôt§³;Ì�z-:¢ƒK zQ«º"hç–ðEcê€à°RKÂÚ\‰zí5\Œ³~À¬™¦/š7Ì~Ú‘‡ªª_h­|PMÀÆ�næªXf]Rv�†ž¨ßTVÙh²Ì$ÈmSþÔ„ñÑׂ�D+dUÎþƒæF\âˆ%­Z}VJ{²n¨ßPAæ™ä@S"�è[Èôz2›ß=Üß̧w³Éôv~5}¸�IÁ¬HLv,’�nu"C¦F¢_ÅÏ?¼dáD’гª 9¬){üeÆŠ/,Ó$axZòu ƒgm -‹(·jÏòc•~Üøé[+Ñ9ÈÞ%.öN"s<æ¸=àVéŌ⯠-~L–îïbÔãþÂY¥eMª$ \ No newline at end of file diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/a4/fa2187727281aea78d7c3aaebdb4b924fc4e4d b/test_data/test_repos/test_repo_9/dotGit/objects/a4/fa2187727281aea78d7c3aaebdb4b924fc4e4d deleted file mode 100644 index 0aabdd40..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/a4/fa2187727281aea78d7c3aaebdb4b924fc4e4d and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/a5/196d1be8fb59edf8062bef36d3a602e0812139 b/test_data/test_repos/test_repo_9/dotGit/objects/a5/196d1be8fb59edf8062bef36d3a602e0812139 deleted file mode 100644 index 62de872c..00000000 --- a/test_data/test_repos/test_repo_9/dotGit/objects/a5/196d1be8fb59edf8062bef36d3a602e0812139 +++ /dev/null @@ -1 +0,0 @@ -x-�±jÃ0„;ç)<¤ µSJ§B¦@¦¾Aé Û¿lI¤_¸Yú쑃·ãø¾»Þ³ÇûÇÛSƒÉ)|n­ó’ѶÔYÒäoðe”Ö&†SW©£‹–Ç­Þ5ør±:EV“‹Óûf“C�¨¹«ä… ×Ä_�Yý .âüZu�¥÷\\œ°°ø½Tz"GdQÐÖ…íW£*)f<—¸=¬ÎâÆ‚ÅD…%Ë£ù¬ò¡û¦ùYÃÿîá›SC \ No newline at end of file diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/a5/d7b84a673458d14d9aab082183a1968c2c7492 b/test_data/test_repos/test_repo_9/dotGit/objects/a5/d7b84a673458d14d9aab082183a1968c2c7492 deleted file mode 100644 index cafdfdb1..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/a5/d7b84a673458d14d9aab082183a1968c2c7492 and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/b5/8d1184a9d43a39c0d95f32453efc78581877d6 b/test_data/test_repos/test_repo_9/dotGit/objects/b5/8d1184a9d43a39c0d95f32453efc78581877d6 deleted file mode 100644 index 043d9c54..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/b5/8d1184a9d43a39c0d95f32453efc78581877d6 and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/c1/f3c6341548a65be1eded56b4f7cacec7fe9090 b/test_data/test_repos/test_repo_9/dotGit/objects/c1/f3c6341548a65be1eded56b4f7cacec7fe9090 deleted file mode 100644 index 7a69ceae..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/c1/f3c6341548a65be1eded56b4f7cacec7fe9090 and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/c9/8e6c52cbd1f50de572ff12a3441271fccff705 b/test_data/test_repos/test_repo_9/dotGit/objects/c9/8e6c52cbd1f50de572ff12a3441271fccff705 deleted file mode 100644 index 14206b0b..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/c9/8e6c52cbd1f50de572ff12a3441271fccff705 and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/cb/089cd89a7d7686d284d8761201649346b5aa1c b/test_data/test_repos/test_repo_9/dotGit/objects/cb/089cd89a7d7686d284d8761201649346b5aa1c deleted file mode 100644 index 17c8d93c..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/cb/089cd89a7d7686d284d8761201649346b5aa1c and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/cb/19a50e8cdeb7011eccdb13f3b739f00d775bab b/test_data/test_repos/test_repo_9/dotGit/objects/cb/19a50e8cdeb7011eccdb13f3b739f00d775bab deleted file mode 100644 index 692983a5..00000000 --- a/test_data/test_repos/test_repo_9/dotGit/objects/cb/19a50e8cdeb7011eccdb13f3b739f00d775bab +++ /dev/null @@ -1,2 +0,0 @@ -x��Í -1 „½êS䨥MÚf+"¾J“­XØY ‚OïŠ^¼íÀ00‡áéFB\™…‚à=kÄ`±%!9Jë0ÌŽè½�\ã5 ;x%½ÁT4Ãéõ‰érŸÆ:}*ÝAÇþ Ö³�HöƳžÛ¾TØ–¡Ô’ºÝ~�…g©7xd�r}l3´Èó.Eë” £E•ܸLÙ…�æÇ–T%P\ ëÛüÁ~óP7oq,\é \ No newline at end of file diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/d2/74003914c707212cbe84e3e466a00013ccb639 b/test_data/test_repos/test_repo_9/dotGit/objects/d2/74003914c707212cbe84e3e466a00013ccb639 deleted file mode 100644 index 142e1a6d..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/d2/74003914c707212cbe84e3e466a00013ccb639 and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/e6/73bb3980f3c286291809e05f80873852bc3e9c b/test_data/test_repos/test_repo_9/dotGit/objects/e6/73bb3980f3c286291809e05f80873852bc3e9c deleted file mode 100644 index 144d4077..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/e6/73bb3980f3c286291809e05f80873852bc3e9c and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/e9/e5396f7e52aa48de485b4836ebb041cc7f7c46 b/test_data/test_repos/test_repo_9/dotGit/objects/e9/e5396f7e52aa48de485b4836ebb041cc7f7c46 deleted file mode 100644 index da7e1c7c..00000000 Binary files a/test_data/test_repos/test_repo_9/dotGit/objects/e9/e5396f7e52aa48de485b4836ebb041cc7f7c46 and /dev/null differ diff --git a/test_data/test_repos/test_repo_9/dotGit/objects/ec/17ec1939b7c3e86b7cb6c0c4de6b0818a7e75e b/test_data/test_repos/test_repo_9/dotGit/objects/ec/17ec1939b7c3e86b7cb6c0c4de6b0818a7e75e deleted file mode 100644 index d7558de5..00000000 --- a/test_data/test_repos/test_repo_9/dotGit/objects/ec/17ec1939b7c3e86b7cb6c0c4de6b0818a7e75e +++ /dev/null @@ -1,2 +0,0 @@ -x-ÍK‚0P×9E [�r§Kïà&0H -Ȥ&ƒ…·7~–Ý]õÚ/âq¾\õ±ó!vyrµ«q‹à�Ö´0&‘¹×� &Hʉ”AHÔÏ< dÉÁD_E±e† 1631064384 -0500 commit (initial): First commit, README only +ae8db4a2306798fcb3a5b9cbe8c486027fc1931f e7c0aff3e8a60b50a85432fdf933f8beff013743 Zach Rice 1631064550 -0500 commit: adding yelp secrets file +e7c0aff3e8a60b50a85432fdf933f8beff013743 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice 1631067099 -0500 commit: adding another aws secrets diff --git a/testdata/repos/basic/dotGit/logs/refs/heads/master b/testdata/repos/basic/dotGit/logs/refs/heads/master new file mode 100644 index 00000000..caf085d5 --- /dev/null +++ b/testdata/repos/basic/dotGit/logs/refs/heads/master @@ -0,0 +1,3 @@ +0000000000000000000000000000000000000000 ae8db4a2306798fcb3a5b9cbe8c486027fc1931f Zach Rice 1631064384 -0500 commit (initial): First commit, README only +ae8db4a2306798fcb3a5b9cbe8c486027fc1931f e7c0aff3e8a60b50a85432fdf933f8beff013743 Zach Rice 1631064550 -0500 commit: adding yelp secrets file +e7c0aff3e8a60b50a85432fdf933f8beff013743 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice 1631067099 -0500 commit: adding another aws secrets diff --git a/testdata/repos/basic/dotGit/logs/refs/remotes/origin/master b/testdata/repos/basic/dotGit/logs/refs/remotes/origin/master new file mode 100644 index 00000000..b3a3d756 --- /dev/null +++ b/testdata/repos/basic/dotGit/logs/refs/remotes/origin/master @@ -0,0 +1 @@ +0000000000000000000000000000000000000000 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice 1631067479 -0500 update by push diff --git a/testdata/repos/basic/dotGit/objects/20/8ae4669ade2563fcaf9f12922fa2c0a5b37c63 b/testdata/repos/basic/dotGit/objects/20/8ae4669ade2563fcaf9f12922fa2c0a5b37c63 new file mode 100644 index 00000000..cdeb30f4 --- /dev/null +++ b/testdata/repos/basic/dotGit/objects/20/8ae4669ade2563fcaf9f12922fa2c0a5b37c63 @@ -0,0 +1,2 @@ +x�ŽA +Â0E]çseÒIÒD<ƒKwÓtÆl"iDðôö ®> 1631064384 -0500 commit (initial): First commit, README only +ae8db4a2306798fcb3a5b9cbe8c486027fc1931f e7c0aff3e8a60b50a85432fdf933f8beff013743 Zach Rice 1631064550 -0500 commit: adding yelp secrets file +e7c0aff3e8a60b50a85432fdf933f8beff013743 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice 1631067099 -0500 commit: adding another aws secrets diff --git a/testdata/repos/with_config/dotGit/logs/refs/heads/master b/testdata/repos/with_config/dotGit/logs/refs/heads/master new file mode 100644 index 00000000..caf085d5 --- /dev/null +++ b/testdata/repos/with_config/dotGit/logs/refs/heads/master @@ -0,0 +1,3 @@ +0000000000000000000000000000000000000000 ae8db4a2306798fcb3a5b9cbe8c486027fc1931f Zach Rice 1631064384 -0500 commit (initial): First commit, README only +ae8db4a2306798fcb3a5b9cbe8c486027fc1931f e7c0aff3e8a60b50a85432fdf933f8beff013743 Zach Rice 1631064550 -0500 commit: adding yelp secrets file +e7c0aff3e8a60b50a85432fdf933f8beff013743 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice 1631067099 -0500 commit: adding another aws secrets diff --git a/testdata/repos/with_config/dotGit/logs/refs/remotes/origin/master b/testdata/repos/with_config/dotGit/logs/refs/remotes/origin/master new file mode 100644 index 00000000..b3a3d756 --- /dev/null +++ b/testdata/repos/with_config/dotGit/logs/refs/remotes/origin/master @@ -0,0 +1 @@ +0000000000000000000000000000000000000000 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice 1631067479 -0500 update by push diff --git a/testdata/repos/with_config/dotGit/objects/20/8ae4669ade2563fcaf9f12922fa2c0a5b37c63 b/testdata/repos/with_config/dotGit/objects/20/8ae4669ade2563fcaf9f12922fa2c0a5b37c63 new file mode 100644 index 00000000..cdeb30f4 --- /dev/null +++ b/testdata/repos/with_config/dotGit/objects/20/8ae4669ade2563fcaf9f12922fa2c0a5b37c63 @@ -0,0 +1,2 @@ +x�ŽA +Â0E]çseÒIÒD<ƒKwÓtÆl"iDðôö ®>