From 07e38c74a4e884241723bbc949e00513b14301d3 Mon Sep 17 00:00:00 2001 From: Adam Korczynski Date: Mon, 4 Dec 2023 13:52:32 +0000 Subject: [PATCH] add sanity check in loop Signed-off-by: Adam Korczynski --- checks/evaluation/binary_artifacts.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/checks/evaluation/binary_artifacts.go b/checks/evaluation/binary_artifacts.go index 20599b941e2..fff943fb2a1 100644 --- a/checks/evaluation/binary_artifacts.go +++ b/checks/evaluation/binary_artifacts.go @@ -41,6 +41,9 @@ func BinaryArtifacts(name string, for i := range findings { f := &findings[i] + if f.Outcome != finding.OutcomeNegative { + continue + } dl.Warn(&checker.LogMessage{ Path: f.Location.Path, Type: f.Location.Type,