Skip to content

Commit

Permalink
replace probe with OutcomeNotApplicable
Browse files Browse the repository at this point in the history
Signed-off-by: AdamKorcz <[email protected]>
  • Loading branch information
AdamKorcz committed Nov 14, 2023
1 parent 91c15e6 commit 486a22c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions probes/webhooksWithoutTokenAuth/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Check failure on line 45 in probes/webhooksWithoutTokenAuth/impl.go

View workflow job for this annotation

GitHub Actions / check-linter

File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/ossf/scorecard) (gci)
finding.OutcomeNotApplicable)
if err != nil {
return nil, Probe, fmt.Errorf("create finding: %w", err)
Expand Down

0 comments on commit 486a22c

Please sign in to comment.