mirror of
https://github.com/securego/gosec.git
synced 2026-06-20 00:15:59 +02:00
fix: filepaths with git anywhere in them being erroneously excluded (#828)
Co-authored-by: Tim Costa <timcosta@amazon.com>
This commit is contained in:
+2
-2
@@ -306,9 +306,9 @@ func main() {
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "\nError: failed to exclude the %q directory from scan", "vendor")
|
||||
}
|
||||
err = flag.Set("exclude-dir", ".git")
|
||||
err = flag.Set("exclude-dir", "\\.git/")
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "\nError: failed to exclude the %q directory from scan", ".git")
|
||||
fmt.Fprintf(os.Stderr, "\nError: failed to exclude the %q directory from scan", "\\.git/")
|
||||
}
|
||||
|
||||
// set for exclude
|
||||
|
||||
Reference in New Issue
Block a user