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)