Set repository access for a self-hosted runner group in an organization
PUT
/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories
Replaces the list of repositories that have access to a self-hosted runner group configured in an organization.
OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” org
required
string
The organization name. The name is not case sensitive.
runner_group_id
required
integer
Unique identifier of the self-hosted runner group.
Request Body required
Section titled “ Request Body required ” Media type application/json
object
selected_repository_ids
required
List of repository IDs that can access the runner group.
Array<integer>
Examples
Example default
{ "selected_repository_ids": [ 32, 91 ]}Responses
Section titled “ Responses ”Response