diff --git a/main.go b/main.go index 0d7b101..87f525c 100644 --- a/main.go +++ b/main.go @@ -40,7 +40,10 @@ func main() { log.Fatalf("Application interrupted [%v]", s) }) - scan(scannerConfig{*imageName, whitelist, *clair, *ip, *reportFile}) + result := scan(scannerConfig{*imageName, whitelist, *clair, *ip, *reportFile}) + if len(result) > 0 { + os.Exit(1) + } } app.Run(os.Args) }