enterprise-admin

Set GitHub Actions permissions for an enterprise

Sets the GitHub Actions permissions policy for organizations and allowed actions and reusable workflows in an enterprise.

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

put/enterprises/{enterprise}/actions/permissions

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/enterprises/{enterprise}/actions/permissions
  • Auth: none declared

Path parameters

enterprisestring required

The slug version of the enterprise name.

Request body

enabled_organizations'all' | 'none' | 'selected' required

The policy that controls the organizations in the enterprise 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

Changes

No recorded changes to this operation across all 83 revisions of this API.