Better Virus Total badges

Make badge color red if any anti virus finds malware
This commit is contained in:
Edward202511
2025-12-07 08:23:50 +00:00
committed by GitHub
parent d5f28ccc72
commit 67c8feafd0
+4 -3
View File
@@ -57,11 +57,11 @@ jobs:
done
if [ "$status" != "completed" ]; then
echo " - [![VT](https://badges.cssnr.com/vt/id/$sha256) $filename](https://www.virustotal.com/gui/file/$sha256) — BAD ❌ (analysis incomplete)" >> vt_report.txt
echo " - [![VT](https://badges.cssnr.com/vt/id/$sha256?end=red&n=1) $filename](https://www.virustotal.com/gui/file/$sha256) — BAD ❌ (analysis incomplete)" >> vt_report.txt
elif [ "$malicious" -gt 0 ]; then
echo " - [![VT](https://badges.cssnr.com/vt/id/$sha256) $filename](https://www.virustotal.com/gui/file/$sha256) — BAD ❌" >> vt_report.txt
echo " - [![VT](https://badges.cssnr.com/vt/id/$sha256?end=red&n=1) $filename](https://www.virustotal.com/gui/file/$sha256) — BAD ❌" >> vt_report.txt
else
echo " - [![VT](https://badges.cssnr.com/vt/id/$sha256) $filename](https://www.virustotal.com/gui/file/$sha256)" >> vt_report.txt
echo " - [![VT](https://badges.cssnr.com/vt/id/$sha256?end=red&n=1) $filename](https://www.virustotal.com/gui/file/$sha256)" >> vt_report.txt
fi
done
@@ -79,3 +79,4 @@ jobs:
tag=$(cat release_tag.txt)
echo "VirusTotal quick scan finished and report added to release $tag"