Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

Fix ClamAV freshclam config: ensure signatures are downloaded

Martin Vogele5b6ee5733e6
diff --git a/.github/workflows/dry-run.yml b/.github/workflows/dry-run.yml
index cea95aabd..f96cd10fa 100644
--- a/.github/workflows/dry-run.yml
+++ b/.github/workflows/dry-run.yml
@@ -306,7 +306,10 @@ jobs:
if: matrix.variant == 'standard' && startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update -qq && sudo apt-get install -y -qq clamav > /dev/null 2>&1
- sudo freshclam --quiet 2>/dev/null || true
+ sudo sed -i 's/^Example/#Example/' /etc/clamav/freshclam.conf 2>/dev/null || true
+ grep -q "DatabaseMirror" /etc/clamav/freshclam.conf 2>/dev/null || \
+ echo "DatabaseMirror database.clamav.net" | sudo tee -a /etc/clamav/freshclam.conf > /dev/null
+ sudo freshclam --quiet
echo "=== ClamAV scan ==="
clamscan --no-summary ./codebase-memory-mcp
echo "=== ClamAV: clean ==="
@@ -315,7 +318,13 @@ jobs:
if: matrix.variant == 'standard' && startsWith(matrix.os, 'macos')
run: |
brew install clamav > /dev/null 2>&1
- freshclam --quiet 2>/dev/null || true
+ 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
echo "=== ClamAV scan (macOS) ==="
clamscan --no-summary ./codebase-memory-mcp
echo "=== ClamAV: clean ==="
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 2297bf1c6..9dab72044 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -302,7 +302,11 @@ jobs:
if: matrix.variant == 'standard' && startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update -qq && sudo apt-get install -y -qq clamav > /dev/null 2>&1
- sudo freshclam --quiet 2>/dev/null || true
+ # Ensure freshclam config has DatabaseMirror set
+ sudo sed -i 's/^Example/#Example/' /etc/clamav/freshclam.conf 2>/dev/null || true
+ grep -q "DatabaseMirror" /etc/clamav/freshclam.conf 2>/dev/null || \
+ echo "DatabaseMirror database.clamav.net" | sudo tee -a /etc/clamav/freshclam.conf > /dev/null
+ sudo freshclam --quiet
echo "=== ClamAV scan ==="
clamscan --no-summary ./codebase-memory-mcp
echo "=== ClamAV: clean ==="
@@ -311,7 +315,14 @@ jobs:
if: matrix.variant == 'standard' && startsWith(matrix.os, 'macos')
run: |
brew install clamav > /dev/null 2>&1
- freshclam --quiet 2>/dev/null || true
+ # 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
echo "=== ClamAV scan (macOS) ==="
clamscan --no-summary ./codebase-memory-mcp
echo "=== ClamAV: clean ==="