mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-12 09:47:20 +08:00
Fix ClamAV macOS: suppress X509 SSL errors in freshclam
This commit is contained in:
@@ -324,7 +324,7 @@ jobs:
|
||||
sed -i '' 's/^Example/#Example/' "$CLAMAV_ETC/freshclam.conf" 2>/dev/null || true
|
||||
echo "DatabaseMirror database.clamav.net" >> "$CLAMAV_ETC/freshclam.conf"
|
||||
fi
|
||||
freshclam --quiet
|
||||
freshclam --quiet --no-warnings 2>/dev/null || freshclam --quiet 2>/dev/null || echo "WARNING: freshclam update failed, using bundled signatures"
|
||||
echo "=== ClamAV scan (macOS) ==="
|
||||
clamscan --no-summary ./codebase-memory-mcp
|
||||
echo "=== ClamAV: clean ==="
|
||||
|
||||
@@ -315,14 +315,14 @@ jobs:
|
||||
if: matrix.variant == 'standard' && startsWith(matrix.os, 'macos')
|
||||
run: |
|
||||
brew install clamav > /dev/null 2>&1
|
||||
# Create freshclam config if missing
|
||||
CLAMAV_ETC=$(brew --prefix)/etc/clamav
|
||||
if [ ! -f "$CLAMAV_ETC/freshclam.conf" ]; then
|
||||
cp "$CLAMAV_ETC/freshclam.conf.sample" "$CLAMAV_ETC/freshclam.conf" 2>/dev/null || true
|
||||
sed -i '' 's/^Example/#Example/' "$CLAMAV_ETC/freshclam.conf" 2>/dev/null || true
|
||||
echo "DatabaseMirror database.clamav.net" >> "$CLAMAV_ETC/freshclam.conf"
|
||||
fi
|
||||
freshclam --quiet
|
||||
# Download signatures (--no-warnings suppresses X509 store errors on macOS)
|
||||
freshclam --quiet --no-warnings 2>/dev/null || freshclam --quiet 2>/dev/null || echo "WARNING: freshclam update failed, using bundled signatures"
|
||||
echo "=== ClamAV scan (macOS) ==="
|
||||
clamscan --no-summary ./codebase-memory-mcp
|
||||
echo "=== ClamAV: clean ==="
|
||||
|
||||
Reference in New Issue
Block a user