diff --git a/scm/github/repo.go b/scm/github/repo.go index abef37151..d5ca50ad5 100644 --- a/scm/github/repo.go +++ b/scm/github/repo.go @@ -793,7 +793,7 @@ func (c *client) SyncRepoWithInstallation(ctx context.Context, r *api.Repo) (*ap } if installation == nil { - return nil, nil + return r, nil } installationCanReadRepo, err := c.installationCanReadRepo(ctx, r, installation)