GH-100 practice question 8 of 15

What needs to be done to ensure that only specific repositories can access the runners in an organization runner group?

Full set: 65 questions
Answer options
A: Use GitHub's meta API to configure access.
B: Add a label to the runner group.
C: Configure repository access in the runner group settings. Correct answer
D: Configure the Actions Policies to "Only selected repositories".
Correct Answer:
C. Configure repository access in the runner group settings.
Explanation

To control which repositories can use runners from an organization-level runner group, an administrator must configure the access policy within that specific group's settings. The "Repository access" setting allows for granular control, enabling administrators to grant access to all repositories in the organization or, more securely, to a specific, curated list of repositories. This is the direct and intended method for managing runner group access.

Why Incorrect

A. Use GitHub's meta API to configure access. The GitHub meta API provides metadata about GitHub services (like IP addresses and service hooks), not for configuring permissions or resource access.
B. Add a label to the runner group. Labels are used within a workflow's runs-on key to target specific runners (e.g., by OS or hardware), not to control which repositories can access the group.
D. Configure the Actions Policies to "Only selected repositories". This organization-level policy determines which repositories are allowed to run GitHub Actions at all, not which specific runner group they can use for their jobs.

References

1. GitHub Docs, "Managing runner groups": In the section "Changing which repositories can access a runner group," the documentation explicitly states: "You can configure a runner group to be accessible to a specific list of repositories... Under 'Repository access', select the Selected repositories dropdown menu, then click [the list of repositories]." This directly supports option C as the correct procedure. (Source: GitHub Enterprise Cloud Documentation > Actions > Hosting your own runners > Using larger runners > Managing runner groups).

Scroll to Top