actions

Set repositories allowed to use self-hosted runners in an organization

Sets repositories that are allowed to use self-hosted runners in 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.

put/orgs/{org}/actions/permissions/self-hosted-runners/repositories

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/orgs/{org}/actions/permissions/self-hosted-runners/repositories
  • Auth: none declared

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Request body

selected_repository_idsinteger[] required

IDs of repositories that can use repository-level self-hosted runners

Response

No content

Changes

No operation changes recorded.