mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-20 05:27:12 +03:00
I've seen this test crash a couple times with a "nil" result.
I'm not quite sure how it happens since I've never been able to reproduce it a second time in a row, so let's treat it as somethign to be retried.
This commit is contained in:
parent
45286f140c
commit
1a1f70cb40
@ -89,7 +89,7 @@ func GithubCheckRuns(c checker.Checker) checker.CheckResult {
|
||||
}
|
||||
totalMerged++
|
||||
crs, _, err := c.Client.Checks.ListCheckRunsForRef(c.Ctx, c.Owner, c.Repo, pr.GetHead().GetSHA(), &github.ListCheckRunsOptions{})
|
||||
if err != nil {
|
||||
if err != nil || crs == nil {
|
||||
return checker.RetryResult(err)
|
||||
}
|
||||
for _, cr := range crs.CheckRuns {
|
||||
|
Loading…
Reference in New Issue
Block a user