mirror of
https://github.com/actions-runner-controller/actions-runner-controller.git
synced 2026-10-02 15:50:33 +02:00
@@ -198,6 +198,12 @@ func (c *MultiGitHubClient) initClientForSecret(secret *corev1.Secret, dependent
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Check if EnterpriseURL is set.
|
||||
if conf.EnterpriseURL == "" {
|
||||
// fallback to the controller-wide setting
|
||||
conf.EnterpriseURL = c.githubClient.GithubBaseURL
|
||||
}
|
||||
|
||||
cli, err := conf.NewClient()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user