|
|
@@ -75,8 +75,12 @@ func (p *GitInstallationScopedMiddleware) doesUserHaveGitInstallationAccess(gith
|
|
|
return err
|
|
|
}
|
|
|
|
|
|
+ if p.config.GithubAppConf == nil {
|
|
|
+ return fmt.Errorf("config has invalid GithubAppConf")
|
|
|
+ }
|
|
|
+
|
|
|
if _, _, err = oauth.GetAccessToken(oauthInt.SharedOAuthModel,
|
|
|
- p.config.GithubConf,
|
|
|
+ &p.config.GithubAppConf.Config,
|
|
|
oauth.MakeUpdateGithubAppOauthIntegrationFunction(oauthInt, p.config.Repo)); err != nil {
|
|
|
return err
|
|
|
}
|