Skip to content

Commit

Permalink
Exclude .git directory from scan (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroakis committed Jun 9, 2020
1 parent 6202b38 commit af699f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/gosec/main.go
Expand Up @@ -249,6 +249,10 @@ 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")
if err != nil {
fmt.Fprintf(os.Stderr, "\nError: failed to exclude the %q directory from scan", ".git")
}

// Parse command line arguments
flag.Parse()
Expand Down

0 comments on commit af699f6

Please sign in to comment.