Skip to content

Commit

Permalink
🐛 Update token permissions check and scoring (#3755)
Browse files Browse the repository at this point in the history
- Update message for when no tokens are found

[checks/evaluation/permissions/permissions.go]
- Change the message for when no tokens are found from "no github tokens found" to "no tokens found"

Signed-off-by: naveensrinivasan <[email protected]>
  • Loading branch information
naveensrinivasan authored Dec 30, 2023
1 parent 69bb742 commit 9986f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks/evaluation/permissions/permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TokenPermissions(name string, c *checker.CheckRequest, r *checker.TokenPerm
}

if r.NumTokens == 0 {
return checker.CreateInconclusiveResult(name, "no github tokens found")
return checker.CreateInconclusiveResult(name, "no tokens found")
}

score, err := applyScorePolicy(r, c)
Expand Down

0 comments on commit 9986f70

Please sign in to comment.