From dc299e426293715e5e37cd60b478faab128386b9 Mon Sep 17 00:00:00 2001
From: pdmarf <135653545+pdmarf@users.noreply.github.com>
Date: Fri, 17 Apr 2026 22:58:14 +0100
Subject: [PATCH] Only send Telegram alert for critical issues, not warnings
---
npm-security-check.sh | 4 ----
1 file changed, 4 deletions(-)
diff --git a/npm-security-check.sh b/npm-security-check.sh
index b778966..fc9e468 100755
--- a/npm-security-check.sh
+++ b/npm-security-check.sh
@@ -281,10 +281,6 @@ Run manually to review: bash npm-security-check.sh"
exit 1
elif [[ $WARNINGS -gt 0 ]]; then
log "$(printf "${YELLOW}⚠ Clean but %d warning(s) — review output above${RESET}" "$WARNINGS")"
- send_telegram "⚠️ Security Warning — npm-security-check
-Host: ${HOSTNAME}
-Warnings: ${WARNINGS} (no critical issues)
-Run manually to review: bash npm-security-check.sh"
exit 0
else
log "$(printf "${GREEN}✓ All checks passed — no indicators of compromise${RESET}")"