mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-10 11:41:27 +00:00
committed by
GitHub
parent
3724b46033
commit
36e95dad47
@@ -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