Skip to content

Commit e2b7797

Browse files
committed
Fix ClamAV macOS: suppress X509 SSL errors in freshclam
1 parent dd30132 commit e2b7797

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/dry-run.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ jobs:
324324
sed -i '' 's/^Example/#Example/' "$CLAMAV_ETC/freshclam.conf" 2>/dev/null || true
325325
echo "DatabaseMirror database.clamav.net" >> "$CLAMAV_ETC/freshclam.conf"
326326
fi
327-
freshclam --quiet
327+
freshclam --quiet --no-warnings 2>/dev/null || freshclam --quiet 2>/dev/null || echo "WARNING: freshclam update failed, using bundled signatures"
328328
echo "=== ClamAV scan (macOS) ==="
329329
clamscan --no-summary ./codebase-memory-mcp
330330
echo "=== ClamAV: clean ==="

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,14 +315,14 @@ jobs:
315315
if: matrix.variant == 'standard' && startsWith(matrix.os, 'macos')
316316
run: |
317317
brew install clamav > /dev/null 2>&1
318-
# Create freshclam config if missing
319318
CLAMAV_ETC=$(brew --prefix)/etc/clamav
320319
if [ ! -f "$CLAMAV_ETC/freshclam.conf" ]; then
321320
cp "$CLAMAV_ETC/freshclam.conf.sample" "$CLAMAV_ETC/freshclam.conf" 2>/dev/null || true
322321
sed -i '' 's/^Example/#Example/' "$CLAMAV_ETC/freshclam.conf" 2>/dev/null || true
323322
echo "DatabaseMirror database.clamav.net" >> "$CLAMAV_ETC/freshclam.conf"
324323
fi
325-
freshclam --quiet
324+
# Download signatures (--no-warnings suppresses X509 store errors on macOS)
325+
freshclam --quiet --no-warnings 2>/dev/null || freshclam --quiet 2>/dev/null || echo "WARNING: freshclam update failed, using bundled signatures"
326326
echo "=== ClamAV scan (macOS) ==="
327327
clamscan --no-summary ./codebase-memory-mcp
328328
echo "=== ClamAV: clean ==="

0 commit comments

Comments
 (0)