From b78b6a37805becd7781d99fdf0b425e97d04ecf5 Mon Sep 17 00:00:00 2001 From: Pat O'Connor Date: Thu, 5 Sep 2024 15:20:37 +0100 Subject: [PATCH] feat(STONEINTG-1030): added db version to clamav report Signed-off-by: Pat O'Connor --- task/clamav-scan/0.1/clamav-scan.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/task/clamav-scan/0.1/clamav-scan.yaml b/task/clamav-scan/0.1/clamav-scan.yaml index 6b8a0eb61f..cbdb9e1f45 100644 --- a/task/clamav-scan/0.1/clamav-scan.yaml +++ b/task/clamav-scan/0.1/clamav-scan.yaml @@ -105,7 +105,8 @@ spec: --alert-encrypted=yes --alert-encrypted-archive=yes --alert-encrypted-doc=yes --alert-macros=yes \ --alert-phishing-ssl=yes --alert-phishing-cloak=yes --alert-partition-intersection=yes \ | tee /work/logs/clamscan-result-$arch.log || true - echo "Executed-on: Scan was executed on version - $(clamscan --version)" | tee -a /work/logs/clamscan-result-$arch.log + db_version=$(sigtool --info /var/lib/clamav/daily.cvd | grep 'Version') + echo "Executed-on: Scan was executed on clamscan version - $(clamscan --version) Database $db_version" | tee -a "/work/logs/clamscan-result-$arch.log" digests_processed+=("\"$arch_sha\"")