mirror of
https://github.com/securego/gosec.git
synced 2024-12-26 04:25:52 +00:00
Make sure to exit 1 if we find an issue
Signed-off-by: Levi Gross <levi@levigross.com>
This commit is contained in:
parent
fadc6d443d
commit
b92fa02ff4
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 more than one issue? If so exit 1
|
||||||
|
if len(analyzer.Issues) > 0 {
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue