An enterprise has a runner group at the enterprise level containing hardened deployment runners. Only repositories in the payments organisation should be able to send jobs to this group, while every other organisation must be blocked. With the least administrative effort, how should the runner group be scoped?
- AConfigure the enterprise runner group to be available to selected organisations, choosing only the payments organisation, so other organisations cannot route jobs to its runners. Correct
- BApply a unique custom label to each deployment runner and ask the payments teams to set runs-on to that label, because matching on a label restricts which repositories can dispatch jobs to those runners.
- CLeave the runner group open to all organisations and instead add a repository allowlist of payments repositories inside each runner's config.sh registration command at the machine level.
- DRecreate the runners as organisation runners inside the payments organisation and delete the enterprise group, because runners can only ever be scoped to a single organisation through group membership.
Why A is correct: An enterprise runner group can be limited to selected organisations, and choosing only the payments organisation means every other organisation is denied access to those runners with a single setting change.
Why B is wrong: Tempting because labels do route jobs to specific runners, but a label is only a routing hint and enforces no access control. Any repository that learns the label could target the runners, so labels do not restrict access.
Why C is wrong: Tempting because registration scopes a runner to a target, but config.sh sets where a runner registers, not a per-repository allowlist. Cross-organisation access is governed by the runner group's organisation settings, not the registration command.
Why D is wrong: Tempting because organisation runners are naturally limited to one organisation, but rebuilding the fleet is heavy work. An enterprise group already supports limiting access to selected organisations without recreating any runner.