mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 07:29:00 -08:00
feat: respect custom exit code from plugin (#6584)
Signed-off-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
@@ -452,10 +452,7 @@ func Run(ctx context.Context, opts flag.Options, targetKind TargetKind) (err err
|
||||
return xerrors.Errorf("report error: %w", err)
|
||||
}
|
||||
|
||||
operation.ExitOnEOL(opts, report.Metadata)
|
||||
operation.Exit(opts, report.Results.Failed())
|
||||
|
||||
return nil
|
||||
return operation.Exit(opts, report.Results.Failed(), report.Metadata)
|
||||
}
|
||||
|
||||
func disabledAnalyzers(opts flag.Options) []analyzer.Type {
|
||||
|
||||
Reference in New Issue
Block a user