v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 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.

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

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 and reusable workflows that are allowed to run.

sha_pinning_requiredboolean

Whether actions must be pinned to a full-length commit SHA.

Response

Response