Sample - GitHub REST API
PUT/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories

Set repository access for a self-hosted runner group in an organization

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.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters · 1 body field
orgstringrequired
The organization name. The name is not case sensitive.
runner_group_idintegerrequired
Unique identifier of the self-hosted runner group.
selected_repository_idsarray<integer>required
List of repository IDs that can access the runner group.

1 status code
204Response