You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use either Github Enterprise Cloud or Server (and have recent enought version supporting Actions), you can use **actions-runner-controller** with those, too. Authentication works same way as with public Github (repo and organization level).
26
+
27
+
```
28
+
$ kubectl set env deploy controller-manager -c manager GITHUB_ENTERPRISE_URL=<GHEC/S URL>
29
+
```
30
+
31
+
[Enterprise level](https://docs.github.com/en/enterprise-server@2.22/actions/hosting-your-own-runners/adding-self-hosted-runners#adding-a-self-hosted-runner-to-an-enterprise) runners are not working yet as there's no API definition for those.
32
+
23
33
## Setting up authentication with GitHub API
24
34
25
35
There are two ways for actions-runner-controller to authenticate with the GitHub API:
"Enable leader election for controller manager. Enabling this will ensure there is only one active controller manager.")
75
76
flag.StringVar(&runnerImage, "runner-image", defaultRunnerImage, "The image name of self-hosted runner container.")
76
77
flag.StringVar(&dockerImage, "docker-image", defaultDockerImage, "The image name of docker sidecar container.")
77
-
flag.StringVar(&ghToken, "github-token", "", "The personal access token of GitHub.")
78
-
flag.Int64Var(&ghAppID, "github-app-id", 0, "The application ID of GitHub App.")
79
-
flag.Int64Var(&ghAppInstallationID, "github-app-installation-id", 0, "The installation ID of GitHub App.")
80
-
flag.StringVar(&ghAppPrivateKey, "github-app-private-key", "", "The path of a private key file to authenticate as a GitHub App")
78
+
flag.StringVar(&c.Token, "github-token", c.Token, "The personal access token of GitHub.")
79
+
flag.Int64Var(&c.AppID, "github-app-id", c.AppID, "The application ID of GitHub App.")
80
+
flag.Int64Var(&c.AppInstallationID, "github-app-installation-id", c.AppInstallationID, "The installation ID of GitHub App.")
81
+
flag.StringVar(&c.AppPrivateKey, "github-app-private-key", c.AppPrivateKey, "The path of a private key file to authenticate as a GitHub App")
81
82
flag.DurationVar(&syncPeriod, "sync-period", 10*time.Minute, "Determines the minimum frequency at which K8s resources managed by this controller are reconciled. When you use autoscaling, set to a lower value like 10 minute, because this corresponds to the minimum time to react on demand change")
0 commit comments