mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 15:37:50 -08:00
fix: Correctly handle recoverable AWS scanning errors (#2726)
This commit is contained in:
@@ -150,8 +150,9 @@ func Run(ctx context.Context, opt flag.Options) error {
|
||||
for _, e := range aerr.Errors() {
|
||||
log.Logger.Warnf("Adapter error: %s", e)
|
||||
}
|
||||
} else {
|
||||
return fmt.Errorf("aws scan error: %w", err)
|
||||
}
|
||||
return fmt.Errorf("aws scan error: %w", err)
|
||||
}
|
||||
r = report.New(cloud.ProviderAWS, opt.Account, opt.Region, results.GetFailed(), opt.Services)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user