GitHub’s v3 REST API.
- Server 1:{protocol}://{hostname}/api/v3
GitHub’s v3 REST API.
Gets the GitHub Actions permissions policy for repositories and allowed actions in an organization.
You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the administration
organization permission to use this API.
Response
The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: all
, none
, or selected
.
Allowed values:allnoneselected
The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when enabled_repositories
is set to selected
.
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
The API URL to use to get or set the actions that are allowed to run, when allowed_actions
is set to selected
.
Sets the GitHub Actions permissions policy for repositories and allowed actions in an organization.
If the organization belongs to an enterprise that has set restrictive permissions at the enterprise level, such as allowed_actions
to selected
actions, then you cannot override them for the organization.
You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the administration
organization permission to use this API.
The policy that controls the repositories in the organization 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
Lists the selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for enabled_repositories
must be configured to selected
. For more information, see “Set GitHub Actions permissions for an organization.”
You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the administration
organization permission to use this API.
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Response
A git repository