Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
Actually skip file (#299)
Bill Richd78c92938528
diff --git a/pkg/sources/filesystem/filesystem.go b/pkg/sources/filesystem/filesystem.goindex d67cb830a..af5feabe0 100644--- a/pkg/sources/filesystem/filesystem.go+++ b/pkg/sources/filesystem/filesystem.go@@ -99,6 +99,7 @@ func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk) errfileStat, err := os.Stat(path)if err != nil {log.WithError(err).Warnf("unable to stat file: %s", path)+ return nil}if !fileStat.Mode().IsRegular() {return nil