Public repositories
Decide whether jobs from public repositories run, and for whom.
#Who can start a job
Jobs from public repositories are off by default. Anyone can open a pull request on a public repository and start work you pay for.
An owner sets this per connected organization or personal account, in Settings, then GitHub.
| Mode | What it does |
|---|---|
| Off | Jobs from public repositories do not run. This is the default. |
| Only listed GitHub users | A job runs only when the GitHub user the run belongs to and the user who started this attempt are both on your list, of up to 100 users. It does not check who wrote the code. When a listed maintainer pushes to a fork's pull request, the run is theirs and its code runs. |
| Anyone | Every public repository job runs, including pull requests from forks. You pay for all of them. |
Users are matched by their GitHub account id, so a renamed account still matches.
#When a job is refused
CI Router checks the setting before any machine starts. A refused job stays queued on GitHub, and nothing is charged. The reason names the setting or the user.
The runner checks the job again when it takes it. A job that fails this second check fails on GitHub.
#The runner group setting on GitHub
GitHub gives public repositories' jobs only to a runner group with Allow public repositories on. A new group has it off. CI Router registers its runners in the Default group. In your organization's settings on GitHub, open Actions, then Runner groups, then Default, and turn the setting on. It applies to every repository that uses the group.
While it is off, CI Router starts no machine for a public repository job. The job is refused with a reason that names the setting.
A personal account has no runner groups. CI Router registers runners on the repository, and GitHub gives them its jobs, public or private. The mode above, job screening and the repository's fork pull request approval setting on GitHub still apply.