Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hooks/notification/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function handle({ getFindings, scan }) {
channel.endPoint = mapToEndPoint(channel.endPoint);
const findingsToNotify = findings.filter(finding => matches(finding, channel.rules));

if (channel.skipNotificationOnZeroFindings === true && findings.length === 0) {
if (channel.skipNotificationOnZeroFindings === true && findingsToNotify.length === 0) {
continue;
}

Expand Down