v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2023-07-147873273.9 MB
enterprise-admin

Set GitHub Actions permissions for an enterprise

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

You must authenticate using an access token with the admin:enterprise scope to use this endpoint.

put/enterprises/{enterprise}/actions/permissions

Path parameters

enterprisestring required

The slug version of the enterprise name. You can also substitute this value with the enterprise id.

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

Response

Response