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.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
Fix security audit false positives in CI
Martin Vogel93d332d1e049
diff --git a/scripts/security-strings.sh b/scripts/security-strings.shindex 32b62758b..0bfd4e7c2 100755--- a/scripts/security-strings.sh+++ b/scripts/security-strings.sh@@ -53,6 +53,10 @@ ALLOWED_URLS=()while IFS= read -r url; do+ # Skip short false positives from binary data (e.g. "https://H9")+ if [[ ${#url} -lt 15 ]]; then+ continue+ fiallowed=falsefor prefix in "${ALLOWED_URLS[@]}"; doif [[ "$url" == "$prefix"* ]]; thendiff --git a/scripts/security-ui.sh b/scripts/security-ui.shindex 770fe5402..7171b4e08 100755--- a/scripts/security-ui.sh+++ b/scripts/security-ui.sh@@ -41,11 +41,23 @@ elseif find "$UI_DIR" -type f \( -name '*.js' -o -name '*.ts' -o -name '*.tsx' -o -name '*.css' \) -exec grep -lE 'https?://' {} \; 2>/dev/null | head -20 > "$SEC_TMPDIR/urls"; thenwhile IFS= read -r file; dorelfile="${file#"$ROOT/"}"- # Check each URL — only localhost/127.0.0.1 allowedgrep -onE 'https?://[^\s"'"'"')]+' "$file" 2>/dev/null | while IFS=: read -r lineno url; docase "$url" inhttp://localhost*|http://127.0.0.1*|https://localhost*|https://127.0.0.1*)- ;; # OK+ ;; # OK — local dev/runtime+ # Bundled framework URLs (embedded by npm deps in dist/ builds):+ http://www.w3.org/*|https://www.w3.org/*)+ ;; # W3C XML/SVG/MathML namespace URIs+ https://react.dev/*|https://reactjs.org/*)+ ;; # React error/docs URLs+ https://github.com/*|https://cdn.jsdelivr.net/*)+ ;; # OSS library credits + CDN refs in bundled code+ https://fonts.googleapis.com/*|https://fonts.gstatic.com/*)+ ;; # Google Fonts (loaded by index.html)+ https://tailwindcss.com/*|https://tailwindc*)+ ;; # Tailwind CSS source annotations+ https://jcgt.org/*|https://doc*)+ ;; # Academic/documentation refs in Three.js shaders*)echo " BLOCKED: ${relfile}:${lineno}: External URL: $url"touch "$SEC_TMPDIR/fail_flag"@@ -61,7 +73,9 @@ elseif find "$UI_DIR" -type f -name '*.html' -exec grep -lE '<script\s+src=|<link\s+href=' {} \; 2>/dev/null > "$SEC_TMPDIR/scripts"; thenwhile IFS= read -r file; dorelfile="${file#"$ROOT/"}"- if grep -nE '<script\s+src="https?://|<link\s+href="https?://' "$file" 2>/dev/null | grep -v 'localhost' | grep -v '127.0.0.1'; then+ if grep -nE '<script\s+src="https?://|<link\s+href="https?://' "$file" 2>/dev/null \+ | grep -v 'localhost' | grep -v '127.0.0.1' \+ | grep -v 'fonts.googleapis.com' | grep -v 'fonts.gstatic.com'; thenecho " BLOCKED: ${relfile}: External script/link load detected"FAIL=1fi