From 486a22c81b5c5c1e476bf1003d2666dbba04a054 Mon Sep 17 00:00:00 2001 From: AdamKorcz Date: Tue, 14 Nov 2023 21:37:48 +0000 Subject: [PATCH] replace probe with OutcomeNotApplicable Signed-off-by: AdamKorcz --- probes/webhooksWithoutTokenAuth/impl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/probes/webhooksWithoutTokenAuth/impl.go b/probes/webhooksWithoutTokenAuth/impl.go index 629d376cafd0..b766b773cad9 100644 --- a/probes/webhooksWithoutTokenAuth/impl.go +++ b/probes/webhooksWithoutTokenAuth/impl.go @@ -40,9 +40,9 @@ func Run(raw *checker.RawResults) ([]finding.Finding, string, error) { var findings []finding.Finding - if totalWebhooks == 0 { + if len(r.Webhooks) == 0 { f, err := finding.NewWith(fs, Probe, - "Repository has webhook without token authorization.", nil, + "Repository does not have webhooks.", nil, finding.OutcomeNotApplicable) if err != nil { return nil, Probe, fmt.Errorf("create finding: %w", err)