Skip to content

Commit

Permalink
fix: ensure scan result count matches scanable object count
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Oct 3, 2024
1 parent 93ed84f commit 60ad0c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions workflows/versionupload/scan_mod_on_virus_total.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 60ad0c1

Please sign in to comment.