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
Next Next commit
Use filtered findings for check instead of the original
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
  • Loading branch information
J12934 committed Jul 1, 2021
commit b5f2d914f21b6f1593a9f8f162ab827a2977345a
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