Skip to content

Commit f658d8b

Browse files
committed
Ensure ClamAV workflow validates EICAR detection
1 parent e8f2084 commit f658d8b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/clam-av.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ jobs:
4141
ls -lh /var/lib/clamav
4242
4343
# Scan extracted bundle so counts reflect actual files
44+
- name: Verify ClamAV detects EICAR signature
45+
run: |
46+
set -e
47+
printf 'X5O!P%%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*' > eicar.com
48+
clamscan eicar.com | tee eicar.log
49+
grep -q 'eicar.com: Eicar-Test-Signature FOUND' eicar.log
50+
grep -q 'Infected files: 1' eicar.log
51+
rm -f eicar.com eicar.log
52+
4453
- name: Extract bundle and scan
4554
run: |
4655
set -e

0 commit comments

Comments
 (0)