The slug version of the enterprise name. You can also substitute this value with the enterprise id.
Get allowed actions for an enterprise
Gets the selected actions that are allowed in an enterprise. To use this endpoint, the enterprise permission policy for allowed_actions
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
Response
200 application/json
Response
Response
selected-actions
Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions
organization.
Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*
, monalisa/octocat@v2
, monalisa/*
."
Path Parameters
Set allowed actions for an enterprise
Sets the actions that are allowed in an enterprise. To use this endpoint, the enterprise permission policy for allowed_actions
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
selected-actions
Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions
organization.
Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*
, monalisa/octocat@v2
, monalisa/*
."
Response
204
Response
Response
Path Parameters
Body
List self-hosted runner groups for an enterprise
Lists all self-hosted runner groups 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
Show Child Parameters
Path Parameters
Query Parameters
Create a self-hosted runner group for an enterprise
Creates a new self-hosted runner group 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
Name of the runner group.
Visibility of a runner group. You can select all organizations or select individual organization. Can be one of: all
or selected
Allowed values:selectedall
Unique identifier of the organization.
Unique identifier of the runner.
Whether the runner group can be used by public
repositories.
Default:false
Response
201 application/json
Response
Response
runner-groups-enterprise
Path Parameters
Body
Get a self-hosted runner group for an enterprise
Gets a specific self-hosted runner group 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 the self-hosted runner group.
Response
200 application/json
Response
Response