Skip to main content

organization_permissions

Overview

Nameorganization_permissions
TypeResource
Idgithub.actions.organization_permissions

Fields

NameDatatypeDescription
allowed_actionsstringThe permissions policy that controls the actions that are allowed to run. Can be one of: all, local_only, or selected.
enabled_repositoriesstringThe policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: all, none, or selected.
selected_actions_urlstringThe API URL to use to get or set the actions that are allowed to run, when allowed_actions is set to selected.
selected_repositories_urlstringThe API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when enabled_repositories is set to selected.

Methods

NameAccessible byRequired ParamsDescription
get_github_actions_permissions_organizationSELECTorgGets the GitHub Actions permissions policy for repositories and allowed actions in an 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.
set_github_actions_permissions_organizationEXECorg, data__enabled_repositoriesSets 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.