v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2023-07-147873273.9 MB
actions

Set GitHub Actions permissions for an organization

Sets the GitHub Actions permissions policy for repositories and allowed actions in an organization.

If the organization belongs to an enterprise that has set restrictive permissions at the enterprise level, such as allowed_actions to selected actions, then you cannot override them for the organization.

You must authenticate using an access token with the admin:org scope to use this endpoint. GitHub Apps must have the administration organization permission to use this API.

put/orgs/{org}/actions/permissions

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Request body

enabled_repositories'all' | 'none' | 'selected' required

The policy that controls the repositories in the organization that are allowed to run GitHub Actions.

allowed_actions'all' | 'local_only' | 'selected'

The permissions policy that controls the actions that are allowed to run.

Response

Response