Get GitHub Actions permissions for an enterprise
Gets 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.
/enterprises/{enterprise}/actions/permissions- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- enterprise stringrequired
The slug version of the enterprise name. You can also substitute this value with the enterprise id.
Responses
Response
Allowed: "all", "local_only", "selected"
The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`.
Allowed: "all", "none", "selected"
The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
The API URL to use to get or set the actions that are allowed to run, when `allowed_actions` is set to `selected`.
The API URL to use to get or set the selected organizations that are allowed to run GitHub Actions, when `enabled_organizations` is set to `selected`.