Only send Telegram alert for critical issues, not warnings
This commit is contained in:
@@ -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}")"
|
||||
|
||||
Reference in New Issue
Block a user