diff --git a/.github/workflows/virustotal_scan.yml b/.github/workflows/virustotal_scan.yml index 0315b8dbd..34183b1b5 100644 --- a/.github/workflows/virustotal_scan.yml +++ b/.github/workflows/virustotal_scan.yml @@ -38,7 +38,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | mkdir -p release_assets - gh release download $TAG_NAME --dir release_assets --pattern "*.apk" || true + gh release download $TAG_NAME --dir release_assets --pattern "*.apk" ls -l release_assets - name: Install VirusTotal CLI @@ -52,14 +52,9 @@ jobs: VT_API_KEY: ${{ secrets.VIRUS_TOTAL_API_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - first=true + echo -e "$REPORT_MARKER\n🛡️ VirusTotal Scan Results:" > vt_report.txt for apk in release_assets/*.apk; do - if $first; then - echo -e "$REPORT_MARKER\n🛡️ VirusTotal Scan Results:" > vt_report.txt - first=false - fi - filename=$(basename "$apk") sha256=$(sha256sum "$apk" | head -c 64) echo "Scanning $filename..."