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

Set GitHub Actions permissions for an organization

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

OAuth app 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 · 3 body fields
orgstringrequired
The organization name. The name is not case sensitive.
enabled_repositoriesstringrequired
The policy that controls the repositories in the organization that are allowed to run GitHub Actions.
Allowed:allnoneselected
allowed_actionsstringoptional
The permissions policy that controls the actions and reusable workflows that are allowed to run.
Allowed:alllocal_onlyselected
sha_pinning_requiredbooleanoptional
Whether actions must be pinned to a full-length commit SHA.

1 status code
204Response