awslabs / awslabs/git-secrets

Fatal error: Unable to read files to diff

Open
#176 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
13.4k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

I have tried multiple repos and I am getting the same issue. Google searches suggest a regex bug! But I am thinking if that was a case everyone in this project would already know about it. Have I missed a fundamental step?

```
user1@C-672 MINGW64 /c/git/testapp (master)
$ git secrets --scan-history
E: unsupported filetype C:\Users\user1\AppData\Local\Temp/9rRRFm_Design Document.Doc
fatal: unable to read files to diff

user1@C-672 MINGW64 /c/git/testapp (master)
$ git secrets --add --allowed '^*.Doc'

user1@C-672 MINGW64 /c/git/testapp (master)
$ git secrets --scan-history
E: unsupported filetype C:\Users\user1\AppData\Local\Temp/v63kHD_Design Document.Doc
fatal: unable to read files to diff
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported commands in a repository containing the shown .Doc file, starting with git secrets --scan-history and the unsupported-filetype error. Trace where scan-history invokes the diff and determine the expected handling for this file type; done means the behavior is fixed or clearly documented and verified against the reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, shell
Domain
cli, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.