diff --git a/scm/github/repo.go b/scm/github/repo.go index 40a6c2bd4..f841f055b 100644 --- a/scm/github/repo.go +++ b/scm/github/repo.go @@ -346,6 +346,12 @@ func (c *client) ListUserRepos(u *library.User) ([]*library.Repo, error) { // iterate through each repo for the user for _, repo := range r { + // skip if the repo is void + // fixes an issue with GitHub replication being out of sync + if repo == nil { + continue + } + // skip if the repo is archived or disabled if repo.GetArchived() || repo.GetDisabled() { continue