diff --git a/workflows/versionupload/scan_mod_on_virus_total.go b/workflows/versionupload/scan_mod_on_virus_total.go index fc08fae..884015a 100644 --- a/workflows/versionupload/scan_mod_on_virus_total.go +++ b/workflows/versionupload/scan_mod_on_virus_total.go @@ -108,6 +108,10 @@ func scanAndSaveResults(ctx context.Context, toScan []io.Reader, names []string, return false, err } + if len(scanResults) != len(toScan) { + return false, nil + } + for _, result := range scanResults { if !result.Safe { return false, nil