Skip to content

Commit

Permalink
Allow 1 failed VT scan
Browse files Browse the repository at this point in the history
  • Loading branch information
mklierman committed Dec 5, 2023
1 parent 4aa7cb0 commit b8b71d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion validation/virustotal.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ func ScanFiles(ctx context.Context, files []io.Reader, names []string) (bool, er
return false, nil
}

if *target.Attributes.Stats.Malicious > 0 || *target.Attributes.Stats.Suspicious > 0 {
// Why 1? Well because some company made a shitty AI and it flags random mods.
if *target.Attributes.Stats.Malicious > 1 || *target.Attributes.Stats.Suspicious > 1 {
log.Error().Msgf("suspicious or malicious file found: %s", name)
return false, nil
}

Expand Down

0 comments on commit b8b71d2

Please sign in to comment.