Sample - GitHub REST API
GET/orgs/{org}/actions/permissions/self-hosted-runners

Get self-hosted runners settings for an organization

Gets the settings for self-hosted runners for an organization.

OAuth app tokens and personal access tokens (classic) need the admin:org scope or the "Actions policies" fine-grained permission to use this endpoint.

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

1 parameter
orgstringrequired
The organization name. The name is not case sensitive.

3 status codes
200Response
enabled_repositoriesstringrequired
The policy that controls whether self-hosted runners can be used by repositories in the organization
Allowed:allselectednone
selected_repositories_urlstringoptional
The URL to the endpoint for managing selected repositories for self-hosted runners in the organization
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 403 is returned: Forbidden. A 404 is returned: Resource not found.