We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f658d8b commit 57bf2dbCopy full SHA for 57bf2db
1 file changed
.github/workflows/clam-av.yml
@@ -43,9 +43,15 @@ jobs:
43
# Scan extracted bundle so counts reflect actual files
44
- name: Verify ClamAV detects EICAR signature
45
run: |
46
- set -e
+ set -euo pipefail
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
+ status=0
49
+ clamscan eicar.com > eicar.log || status=$?
50
+ cat eicar.log
51
+ if [ "$status" -ne 1 ]; then
52
+ echo "ClamAV failed to report the EICAR signature" >&2
53
+ exit 1
54
+ fi
55
grep -q 'eicar.com: Eicar-Test-Signature FOUND' eicar.log
56
grep -q 'Infected files: 1' eicar.log
57
rm -f eicar.com eicar.log
0 commit comments