GitHub v3 REST API

enabled-organizations

string

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

allowed-actions

string

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

selected-actions-url

string

The API URL to use to get or set the actions that are allowed to run, when allowed_actions is set to selected.

actions-enterprise-permissions

object
enabled_organizationsstringrequired

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

selected_organizations_urlstring

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.

allowed_actionsstring

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

selected_actions_urlstring

The API URL to use to get or set the actions that are allowed to run, when allowed_actions is set to selected.

Example

selected-actions

object
github_owned_allowedbooleanrequired

Whether GitHub-owned actions are allowed. For example, this includes the actions in the actions organization.

patterns_allowedarray[string]required

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/*."

Example