Install the GitHub App
Connect a GitHub organization or personal account, choose its repositories, and see what the App may do.
#Before you install
- CI Router runs jobs for an organization or a personal account. On an organization, runners are registered with the organization. On a personal account, they are registered with the job's repository. Personal accounts are supported.
- An owner of the organization installs the App. Anyone else can request the install, and GitHub sends the request to an owner.
- Start the install from the dashboard, so the organization joins your team. A job from an organization with no team does not start, and its reason says so.
#Install
On the dashboard, choose Install the GitHub App. Pick your organization. Then pick the repositories the App may see: all of them, or a list. CI Router routes jobs from those repositories only.
We recommend Only select repositories. Start with the repositories you want to move, and add more later.
If you are not an owner, GitHub sends the request to an owner. The dashboard connects when they approve it. Settings, then GitHub, lists each connected organization and the repositories the App can see.
#Permissions
The App asks for these permissions on the account and its selected repositories:
| Permission | Access |
|---|---|
| Self-hosted runners (organization) | Read and write |
| Administration (repository) | Read and write |
| Actions | Read and write |
| Checks | Read and write |
| Contents | Read |
| Metadata | Read |
- Self-hosted runners: CI Router registers a single-use runner for each job it places. The runner takes one job. The machine is destroyed after it.
- Administration: GitHub requires it to register runners on a repository. A personal account can only have runners there. CI Router uses it only for those runner calls, and never on an organization. GitHub grants it as one permission, which also covers deleting a repository and adding collaborators. CI Router does neither.
- Contents: CI Router reads workflow files to see what a job needs, such as Docker or KVM, and to screen it. It never stores the workflow text.
- Checks: CI Router posts a CI Router placement check when it cannot place a job, with the reason. It posts a failed ci-router screening check when screening blocks a run.
- Actions: CI Router cancels a run that screening blocks. It reads who started a run, for the public repository setting.
The App receives the workflow_job event, which says when a job asks for a ci-router runner. It also receives installation and repository events, to keep the list of repositories and the dependency cache in step with GitHub.
#Change the repositories
Add or remove repositories in your organization's settings on GitHub, under GitHub Apps. Manage on GitHub, in Settings then GitHub, opens that page. A job from a repository the App cannot see never reaches CI Router. It stays queued on GitHub.
#Uninstall
Uninstall the App in your organization's settings on GitHub. CI Router then stops for that organization. First set the moved jobs' runs-on back to their old value. Otherwise they stay queued on GitHub with no runner. See Roll back.