mirror of
https://github.com/securego/gosec.git
synced 2025-03-01 04:33:29 +00:00
Merge pull request #58 from levigross/master
Make sure to exit 1 if we find an issue
This commit is contained in:
commit
4cd269f3a6
1 changed files with 5 additions and 0 deletions
5
main.go
5
main.go
|
@ -227,4 +227,9 @@ func main() {
|
||||||
} else {
|
} else {
|
||||||
output.CreateReport(os.Stdout, *flagFormat, &analyzer)
|
output.CreateReport(os.Stdout, *flagFormat, &analyzer)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Do we have an issue? If so exit 1
|
||||||
|
if len(analyzer.Issues) > 0 {
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue