diff --git a/detect/detect.go b/detect/detect.go index 3d2e60a1..73964d34 100644 --- a/detect/detect.go +++ b/detect/detect.go @@ -335,7 +335,7 @@ func (d *Detector) DetectFiles(source string) ([]report.Finding, error) { if err != nil { return err } - if fInfo.Name() == ".git" { + if fInfo.Name() == ".git" && fInfo.IsDir() { return filepath.SkipDir } if fInfo.Mode().IsRegular() {