diff --git a/checks/sast.go b/checks/sast.go index 6edf9427a79..a0f92f10655 100644 --- a/checks/sast.go +++ b/checks/sast.go @@ -51,6 +51,9 @@ func SASTToolInCheckRuns(c checker.Checker) checker.CheckResult { if err != nil { return checker.RetryResult(err) } + if crs == nil { + return checker.InconclusiveResult + } for _, cr := range crs.CheckRuns { if cr.GetStatus() != "completed" { continue