Skip to content

Commit d3aa98e

Browse files
committed
Fix VirusTotal gate: accept completed scans with < 60 engines
VT's status=completed is final — no more engines will report. The script was polling indefinitely when ARM binaries only reached 50/76 engines. Now accepts any completed scan, logs a NOTE when below MIN_ENGINES.
1 parent 6f268d0 commit d3aa98e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/ci/check-virustotal.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,11 @@ print(f'{status},{malicious},{suspicious},{completed},{total}')
5959
COMPLETED=$(echo "$STATS" | cut -d',' -f4)
6060
TOTAL=$(echo "$STATS" | cut -d',' -f5)
6161

62-
if [ "$STATUS" = "completed" ] && [ "$COMPLETED" -ge "$MIN_ENGINES" ]; then
62+
if [ "$STATUS" = "completed" ]; then
6363
SCAN_COMPLETE=true
64+
if [ "$COMPLETED" -lt "$MIN_ENGINES" ]; then
65+
echo "NOTE: $BASENAME completed with only $COMPLETED/$TOTAL engines (< $MIN_ENGINES)"
66+
fi
6467
if [ "$MALICIOUS" -gt 0 ] || [ "$SUSPICIOUS" -gt 0 ]; then
6568
echo "BLOCKED: $BASENAME flagged ($MALICIOUS malicious, $SUSPICIOUS suspicious / $COMPLETED engines)"
6669
echo " $URL"

0 commit comments

Comments
 (0)