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

Get GitHub Actions permissions for an organization

Gets the GitHub Actions permissions policy for repositories and allowed actions and reusable workflows in an organization.

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

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

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

1 status code
200Response
enabled_repositoriesstringrequired
The policy that controls the repositories in the organization that are allowed to run GitHub Actions.
Allowed:allnoneselected
selected_repositories_urlstringoptional
The 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`.
allowed_actionsstringoptional
The permissions policy that controls the actions and reusable workflows that are allowed to run.
Allowed:alllocal_onlyselected
selected_actions_urlstringoptional
The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.
sha_pinning_requiredbooleanoptional
Whether actions must be pinned to a full-length commit SHA.