The slug version of the enterprise name. You can also substitute this value with the enterprise id.
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.
Path Parameters
Body
application/json
Body
The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions. Can be one of: all
, none
, or selected
.
Allowed values:allnoneselected
The permissions policy that controls the actions that are allowed to run. Can be one of: all
, local_only
, or selected
.
Allowed values:alllocal_onlyselected
Response
204
Response
Response
Path Parameters
Body
List selected organizations enabled for GitHub Actions in an enterprise
Lists the organizations that are selected to have GitHub Actions enabled in an enterprise. To use this endpoint, the enterprise permission policy for enabled_organizations
must be configured to selected
. For more information, see “Set GitHub Actions permissions for an enterprise.”
You must authenticate using an access token with the admin:enterprise
scope to use this endpoint.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
The slug version of the enterprise name. You can also substitute this value with the enterprise id.
Response
200 application/json
Response
Response
Organization Simple
Show Child Parameters
Path Parameters
Query Parameters
Set selected organizations enabled for GitHub Actions in an enterprise
Replaces the list of selected organizations that are enabled for GitHub Actions in an enterprise. To use this endpoint, the enterprise permission policy for enabled_organizations
must be configured to selected
. For more information, see “Set GitHub Actions permissions for an enterprise.”
You must authenticate using an access token with the admin:enterprise
scope to use this endpoint.
Path Parameters
The slug version of the enterprise name. You can also substitute this value with the enterprise id.
Body
application/json
Body
Unique identifier of the organization.
Response
204
Response
Response
Path Parameters
Body
Enable a selected organization for GitHub Actions in an enterprise
Adds an organization to the list of selected organizations that are enabled for GitHub Actions in an enterprise. To use this endpoint, the enterprise permission policy for enabled_organizations
must be configured to selected
. For more information, see “Set GitHub Actions permissions for an enterprise.”
You must authenticate using an access token with the admin:enterprise
scope to use this endpoint.
Path Parameters
The slug version of the enterprise name. You can also substitute this value with the enterprise id.
Unique identifier of an organization.
Response
204
Response
Response
Path Parameters
Disable a selected organization for GitHub Actions in an enterprise
Removes an organization from the list of selected organizations that are enabled for GitHub Actions in an enterprise. To use this endpoint, the enterprise permission policy for enabled_organizations
must be configured to selected
. For more information, see “Set GitHub Actions permissions for an enterprise.”
You must authenticate using an access token with the admin:enterprise
scope to use this endpoint.
Path Parameters
The slug version of the enterprise name. You can also substitute this value with the enterprise id.
Unique identifier of an organization.
Response
204
Response
Response