Only send Telegram alert for critical issues, not warnings

This commit is contained in:
pdmarf
2026-04-17 22:58:14 +01:00
parent 9b35a0b338
commit dc299e4262

View File

@@ -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 "⚠️ <b>Security Warning — npm-security-check</b>
Host: <code>${HOSTNAME}</code>
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}")"