mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-12 04:26:51 +00:00
committed by
GitHub
parent
3724b46033
commit
36e95dad47
@@ -198,6 +198,12 @@ func (c *MultiGitHubClient) initClientForSecret(secret *corev1.Secret, dependent
|
|||||||
return nil, err
|
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()
|
cli, err := conf.NewClient()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Reference in New Issue
Block a user