diff --git a/config/allowlist.go b/config/allowlist.go index f2761c74..5ffc827f 100644 --- a/config/allowlist.go +++ b/config/allowlist.go @@ -47,7 +47,7 @@ func (a *AllowList) RepoAllowed(repo string) bool { // IgnoreDotGit appends a `.git$` rule to ignore all .git paths. This is used for --no-git scans func (a *AllowList) IgnoreDotGit() error { - re, err := regexp.Compile(".git$") + re, err := regexp.Compile(".git") if err != nil { return err } diff --git a/config/default.go b/config/default.go index 469bd07a..27c3dd03 100644 --- a/config/default.go +++ b/config/default.go @@ -159,6 +159,6 @@ title = "gitleaks config" [allowlist] description = "Allowlisted files" files = ['''^\.?gitleaks.toml$''', - '''(.*?)(jpg|gif|doc|pdf|bin)$''', + '''(.*?)(png|jpg|gif|doc|docx|pdf|bin|xls|pyc|zip)$''', '''(go.mod|go.sum)$'''] ` diff --git a/config/rule.go b/config/rule.go index 09f62ea9..a1a36e34 100644 --- a/config/rule.go +++ b/config/rule.go @@ -79,6 +79,9 @@ func (r *Rule) HasFileOrPathLeakOnly(filePath string) bool { if len(r.Entropies) != 0 { return false } + if r.AllowList.FileAllowed(filepath.Base(filePath)) || r.AllowList.PathAllowed(filePath) { + return false + } return r.HasFileLeak(filepath.Base(filePath)) || r.HasFilePathLeak(filePath) } diff --git a/go.mod b/go.mod index 495abfb4..d599cff2 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module github.com/zricethezav/gitleaks/v7 go 1.15 -replace github.com/go-git/go-git/v5 => github.com/zricethezav/go-git/v5 v5.2.1 +replace github.com/go-git/go-git/v5 => github.com/zricethezav/go-git/v5 v5.2.2 require ( github.com/BurntSushi/toml v0.3.1 diff --git a/go.sum b/go.sum index 1f5f6652..40857e8c 100644 --- a/go.sum +++ b/go.sum @@ -68,6 +68,8 @@ github.com/xanzy/ssh-agent v0.2.1 h1:TCbipTQL2JiiCprBWx9frJ2eJlCYT00NmctrHxVAr70 github.com/xanzy/ssh-agent v0.2.1/go.mod h1:mLlQY/MoOhWBj+gOGMQkOeiEvkx+8pJSI+0Bx9h2kr4= github.com/zricethezav/go-git/v5 v5.2.1 h1:snaoKv8ksDSz7NfBRXsBr9Yr8IKEKWRWf1zdhFmcFvI= github.com/zricethezav/go-git/v5 v5.2.1/go.mod h1:kh02eMX+wdqqxgNMEyq8YgwlIOsDOa9homkUq1PoTMs= +github.com/zricethezav/go-git/v5 v5.2.2 h1:VOVijF5OpIiHvFZXX94AJezdJ0b0kTyRyVNZ4yaqCRU= +github.com/zricethezav/go-git/v5 v5.2.2/go.mod h1:kh02eMX+wdqqxgNMEyq8YgwlIOsDOa9homkUq1PoTMs= golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073 h1:xMPOj6Pz6UipU1wXLkrtqpHbR0AVFnyPEQq/wRWz9lM= diff --git a/scan/commit.go b/scan/commit.go index 45fc1838..5b97d95e 100644 --- a/scan/commit.go +++ b/scan/commit.go @@ -103,14 +103,17 @@ func (cs *CommitScanner) Scan() (Report, error) { // Check the actual content for _, line := range strings.Split(chunk.Content(), "\n") { for _, rule := range cs.cfg.Rules { + if rule.AllowList.FileAllowed(filepath.Base(to.Path())) || + rule.AllowList.PathAllowed(to.Path()) || + rule.AllowList.CommitAllowed(cs.commit.Hash.String()) { + continue + } offender := rule.Inspect(line) if offender == "" { continue } - if cs.cfg.Allowlist.RegexAllowed(line) || - rule.AllowList.FileAllowed(filepath.Base(to.Path())) || - rule.AllowList.PathAllowed(to.Path()) || - rule.AllowList.CommitAllowed(cs.commit.Hash.String()) { + + if cs.cfg.Allowlist.RegexAllowed(line) { continue } diff --git a/scan/filesatcommit.go b/scan/filesatcommit.go index 16a6c710..0a226ea5 100644 --- a/scan/filesatcommit.go +++ b/scan/filesatcommit.go @@ -81,15 +81,19 @@ func (fs *FilesAtCommitScanner) Scan() (Report, error) { for i, line := range strings.Split(content, "\n") { for _, rule := range fs.cfg.Rules { + if rule.AllowList.FileAllowed(filepath.Base(f.Name)) || + rule.AllowList.PathAllowed(f.Name) || + rule.AllowList.CommitAllowed(fs.commit.Hash.String()) { + continue + } + offender := rule.Inspect(line) if offender == "" { continue } - if fs.cfg.Allowlist.RegexAllowed(line) || - rule.AllowList.FileAllowed(filepath.Base(f.Name)) || - rule.AllowList.PathAllowed(f.Name) || - rule.AllowList.CommitAllowed(fs.commit.Hash.String()) { + + if fs.cfg.Allowlist.RegexAllowed(line) { continue } diff --git a/scan/nogit.go b/scan/nogit.go index 82f6a26b..576f3860 100644 --- a/scan/nogit.go +++ b/scan/nogit.go @@ -7,11 +7,11 @@ import ( "path/filepath" "strings" + log "github.com/sirupsen/logrus" + "github.com/zricethezav/gitleaks/v7/config" "github.com/zricethezav/gitleaks/v7/options" - log "github.com/sirupsen/logrus" - "golang.org/x/sync/errgroup" ) @@ -36,7 +36,6 @@ func NewNoGitScanner(opts options.Options, cfg config.Config) *NoGitScanner { log.Error(err) return nil } - return ngs } @@ -95,13 +94,17 @@ func (ngs *NoGitScanner) Scan() (Report, error) { lineNumber++ for _, rule := range ngs.cfg.Rules { line := scanner.Text() + + if rule.AllowList.FileAllowed(filepath.Base(p)) || + rule.AllowList.PathAllowed(p) { + continue + } + offender := rule.Inspect(line) if offender == "" { continue } - if ngs.cfg.Allowlist.RegexAllowed(line) || - rule.AllowList.FileAllowed(filepath.Base(p)) || - rule.AllowList.PathAllowed(p) { + if ngs.cfg.Allowlist.RegexAllowed(line) { continue } diff --git a/scan/scan_test.go b/scan/scan_test.go index 9c47a894..23f7e9db 100644 --- a/scan/scan_test.go +++ b/scan/scan_test.go @@ -15,7 +15,10 @@ import ( const testRepoBase = "../test_data/test_repos/" func TestScan(t *testing.T) { - moveDotGit("dotGit", ".git") + err := moveDotGit("dotGit", ".git") + if err != nil { + t.Fatal(err) + } defer moveDotGit(".git", "dotGit") tests := []struct { description string @@ -32,6 +35,7 @@ func TestScan(t *testing.T) { 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", }, @@ -120,6 +124,7 @@ func TestScan(t *testing.T) { 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", }, @@ -219,6 +224,7 @@ func TestScan(t *testing.T) { 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", }, @@ -425,6 +431,38 @@ func TestScan(t *testing.T) { }, 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 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", + }, } for _, test := range tests { @@ -708,6 +746,14 @@ func moveDotGit(from, to string) error { 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 } @@ -721,6 +767,7 @@ func moveDotGit(from, to string) error { if err != nil { return err } + // fmt.Println("RENAMED") } return nil } diff --git a/test_data/test_allow_list_docx_no_git.json b/test_data/test_allow_list_docx_no_git.json new file mode 100644 index 00000000..e04dfe59 --- /dev/null +++ b/test_data/test_allow_list_docx_no_git.json @@ -0,0 +1,18 @@ +[ + { + "line": "", + "lineNumber": 1, + "offender": "Filename or path offender: ../test_data/test_repos/test_repo_10/bad.zip", + "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" + } +] diff --git a/test_data/test_allow_list_file.json b/test_data/test_allow_list_file.json new file mode 100644 index 00000000..22abef31 --- /dev/null +++ b/test_data/test_allow_list_file.json @@ -0,0 +1,18 @@ +[ + { + "line": "", + "lineNumber": 1, + "offender": "Filename or path offender: tmp/bad.docx", + "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 new file mode 100644 index 00000000..200638be --- /dev/null +++ b/test_data/test_allow_list_file_no_git.json @@ -0,0 +1,18 @@ +[ + { + "line": "", + "lineNumber": 1, + "offender": "Filename or path offender: ../test_data/test_repos/test_repo_10/tmp/bad.docx", + "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_configs/allowlist_docx.toml b/test_data/test_configs/allowlist_docx.toml new file mode 100644 index 00000000..6d1e242c --- /dev/null +++ b/test_data/test_configs/allowlist_docx.toml @@ -0,0 +1,11 @@ +[[rules]] + description = "Block dangerous filetypes" + file = '''(.*?)(pdf|doc|docx|zip|xls|tfplan|tfstate|tfvars|vault_pass|vagrant|pyc|key|cache)$''' + tags = ["key", "extensions"] + [rules.allowlist] + paths = ['''.docx'''] + description = "ignore known locations and files" + +#[allowlist] +# description = "Allowlisted files" +# paths = ['''.zip'''] diff --git a/test_data/test_configs/allowlist_files.toml b/test_data/test_configs/allowlist_files.toml new file mode 100644 index 00000000..1bca3275 --- /dev/null +++ b/test_data/test_configs/allowlist_files.toml @@ -0,0 +1,11 @@ +[[rules]] + description = "Block dangerous filetypes" + file = '''(.*?)(pdf|doc|docx|zip|xls|tfplan|tfstate|tfvars|vault_pass|vagrant|pyc|key|cache)$''' + tags = ["key", "extensions"] + [rules.allowlist] + paths = ['''.zip'''] + description = "ignore known locations and files" +# +#[allowlist] +# description = "Allowlisted files" +# paths = ['''.zip'''] diff --git a/test_data/test_only_files_no_git.json b/test_data/test_only_files_no_git.json index 76fb0469..ae4995f9 100644 --- a/test_data/test_only_files_no_git.json +++ b/test_data/test_only_files_no_git.json @@ -2,7 +2,7 @@ { "line": "", "lineNumber": 1, - "offender": "Filename or path offender: ../test_data/test_repos/test_repo_2/no_secrets.md", + "offender": "Filename or path offender: ../test_data/test_repos/test_repo_10/README.md", "commit": "", "repo": "", "repoURL": "", @@ -11,7 +11,7 @@ "commitMessage": "", "author": "", "email": "", - "file": "../test_data/test_repos/test_repo_2/no_secrets.md", + "file": "../test_data/test_repos/test_repo_10/README.md", "date": "0001-01-01T00:00:00Z", "tags": "key, extensions" }, @@ -31,6 +31,22 @@ "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", + "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, @@ -63,22 +79,6 @@ "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", - "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, @@ -95,6 +95,22 @@ "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", + "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, diff --git a/test_data/test_regex_allowlist.json.got b/test_data/test_regex_allowlist.json similarity index 100% rename from test_data/test_regex_allowlist.json.got rename to test_data/test_regex_allowlist.json diff --git a/test_data/test_repos/test_repo_10/.gitleaks.toml b/test_data/test_repos/test_repo_10/.gitleaks.toml new file mode 100644 index 00000000..84f7ae41 --- /dev/null +++ b/test_data/test_repos/test_repo_10/.gitleaks.toml @@ -0,0 +1,11 @@ +[[rules]] + description = "Block dangerous filetypes" + file = '''(.*?)(pdf|doc|docx|zip|xls|tfplan|tfstate|tfvars|vault_pass|vagrant|pyc|key|cache)$''' + tags = ["key", "extensions"] + [rules.allowlist] + paths = ['''.git''', '''.zip'''] + description = "ignore known locations and files" + +[allowlist] + description = "Allowlisted files" + paths = ['''.zip'''] diff --git a/test_data/test_repos/test_repo_10/README.md b/test_data/test_repos/test_repo_10/README.md new file mode 100644 index 00000000..fbf892c7 --- /dev/null +++ b/test_data/test_repos/test_repo_10/README.md @@ -0,0 +1 @@ +# test_repo_paths \ No newline at end of file diff --git a/test_data/test_repos/test_repo_10/bad.zip b/test_data/test_repos/test_repo_10/bad.zip new file mode 100644 index 00000000..7dd4a6d4 --- /dev/null +++ b/test_data/test_repos/test_repo_10/bad.zip @@ -0,0 +1 @@ +this is a bad .zip diff --git a/test_data/test_repos/test_repo_10/dotGit/HEAD b/test_data/test_repos/test_repo_10/dotGit/HEAD new file mode 100644 index 00000000..b870d826 --- /dev/null +++ b/test_data/test_repos/test_repo_10/dotGit/HEAD @@ -0,0 +1 @@ +ref: refs/heads/main diff --git a/test_data/test_repos/test_repo_10/dotGit/bad.zip b/test_data/test_repos/test_repo_10/dotGit/bad.zip new file mode 100644 index 00000000..e69de29b diff --git a/test_data/test_repos/test_repo_10/dotGit/config b/test_data/test_repos/test_repo_10/dotGit/config new file mode 100644 index 00000000..9a4aba0d --- /dev/null +++ b/test_data/test_repos/test_repo_10/dotGit/config @@ -0,0 +1,13 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = false + logallrefupdates = true + ignorecase = true + precomposeunicode = true +[remote "origin"] + url = git@github.com:zricethezav/test_repo_paths.git + fetch = +refs/heads/*:refs/remotes/origin/* +[branch "main"] + remote = origin + merge = refs/heads/main diff --git a/test_data/test_repos/test_repo_10/dotGit/description b/test_data/test_repos/test_repo_10/dotGit/description new file mode 100644 index 00000000..498b267a --- /dev/null +++ b/test_data/test_repos/test_repo_10/dotGit/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/test_data/test_repos/test_repo_10/dotGit/index b/test_data/test_repos/test_repo_10/dotGit/index new file mode 100644 index 00000000..13e43158 Binary files /dev/null and b/test_data/test_repos/test_repo_10/dotGit/index differ diff --git a/test_data/test_repos/test_repo_10/dotGit/info/exclude b/test_data/test_repos/test_repo_10/dotGit/info/exclude new file mode 100644 index 00000000..a5196d1b --- /dev/null +++ b/test_data/test_repos/test_repo_10/dotGit/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/test_data/test_repos/test_repo_10/dotGit/logs/HEAD b/test_data/test_repos/test_repo_10/dotGit/logs/HEAD new file mode 100644 index 00000000..e729e639 --- /dev/null +++ b/test_data/test_repos/test_repo_10/dotGit/logs/HEAD @@ -0,0 +1 @@ +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/heads/main b/test_data/test_repos/test_repo_10/dotGit/logs/refs/heads/main new file mode 100644 index 00000000..e729e639 --- /dev/null +++ b/test_data/test_repos/test_repo_10/dotGit/logs/refs/heads/main @@ -0,0 +1 @@ +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 new file mode 100644 index 00000000..e729e639 --- /dev/null +++ b/test_data/test_repos/test_repo_10/dotGit/logs/refs/remotes/origin/HEAD @@ -0,0 +1 @@ +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 new file mode 100644 index 00000000..7070ac48 Binary files /dev/null and b/test_data/test_repos/test_repo_10/dotGit/objects/pack/pack-bb11838b7e60925aeee8a41a4a2b508b576b4b4c.idx 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 new file mode 100644 index 00000000..3acfcc74 Binary files /dev/null and b/test_data/test_repos/test_repo_10/dotGit/objects/pack/pack-bb11838b7e60925aeee8a41a4a2b508b576b4b4c.pack 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 new file mode 100644 index 00000000..dc736bbf --- /dev/null +++ b/test_data/test_repos/test_repo_10/dotGit/packed-refs @@ -0,0 +1,2 @@ +# 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 new file mode 100644 index 00000000..88299b61 --- /dev/null +++ b/test_data/test_repos/test_repo_10/dotGit/refs/heads/main @@ -0,0 +1 @@ +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 new file mode 100644 index 00000000..4b0a8759 --- /dev/null +++ b/test_data/test_repos/test_repo_10/dotGit/refs/remotes/origin/HEAD @@ -0,0 +1 @@ +ref: refs/remotes/origin/main diff --git a/test_data/test_repos/test_repo_10/tmp/bad.docx b/test_data/test_repos/test_repo_10/tmp/bad.docx new file mode 100644 index 00000000..f4ff7ce0 --- /dev/null +++ b/test_data/test_repos/test_repo_10/tmp/bad.docx @@ -0,0 +1 @@ +bad .docx