mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-11 12:06:57 +00:00
Add cmd line arg for enterprise url. Fix enterprise bug. (#1)
* Add cmd line arg for enterprise url. Fix enterprise bug. * Fix package import order * Fix comment
This commit is contained in:
@@ -198,9 +198,8 @@ 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
|
||||
// Fallback to the controller-wide setting if EnterpriseURL is not set and the original client is an enterprise client.
|
||||
if conf.EnterpriseURL == "" && c.githubClient.IsEnterprise {
|
||||
conf.EnterpriseURL = c.githubClient.GithubBaseURL
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user