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.
octokit.enterpriseAdmin.disableSelectedOrganizationGithubActionsEnterprise({enterprise,org_id,});
name | required | description |
---|---|---|
enterprise | yes | The slug version of the enterprise name. You can also substitute this value with the enterprise id. |
org_id | yes | Unique identifier of an organization. |
See also: GitHub Developer Guide documentation.
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.
octokit.enterpriseAdmin.enableSelectedOrganizationGithubActionsEnterprise({enterprise,org_id,});
name | required | description |
---|---|---|
enterprise | yes | The slug version of the enterprise name. You can also substitute this value with the enterprise id. |
org_id | yes | Unique identifier of an organization. |
See also: GitHub Developer Guide documentation.
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.
octokit.enterpriseAdmin.getAllowedActionsEnterprise({enterprise,});
name | required | description |
---|---|---|
enterprise | yes | The slug version of the enterprise name. You can also substitute this value with the enterprise id. |
See also: GitHub Developer Guide documentation.
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.
octokit.enterpriseAdmin.getGithubActionsPermissionsEnterprise({enterprise,});
name | required | description |
---|---|---|
enterprise | yes | The slug version of the enterprise name. You can also substitute this value with the enterprise id. |
See also: GitHub Developer Guide documentation.
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.
octokit.enterpriseAdmin.listSelectedOrganizationsEnabledGithubActionsEnterprise({enterprise,});
name | required | description |
---|---|---|
enterprise | yes | The slug version of the enterprise name. You can also substitute this value with the enterprise id. |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
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.
octokit.enterpriseAdmin.setAllowedActionsEnterprise({enterprise,github_owned_allowed,verified_allowed,patterns_allowed,});
name | required | description |
---|---|---|
enterprise | yes | The slug version of the enterprise name. You can also substitute this value with the enterprise id. |
github_owned_allowed | yes | Whether GitHub-owned actions are allowed. For example, this includes the actions in the |
verified_allowed | yes | Whether actions in GitHub Marketplace from verified creators are allowed. Set to |
patterns_allowed | yes | Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, |
See also: GitHub Developer Guide documentation.
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.
octokit.enterpriseAdmin.setGithubActionsPermissionsEnterprise({enterprise,enabled_organizations,});
name | required | description |
---|---|---|
enterprise | yes | The slug version of the enterprise name. You can also substitute this value with the enterprise id. |
enabled_organizations | yes | The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions. Can be one of: |
allowed_actions | no | The permissions policy that controls the actions that are allowed to run. Can be one of: |
See also: GitHub Developer Guide documentation.
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.
octokit.enterpriseAdmin.setSelectedOrganizationsEnabledGithubActionsEnterprise({enterprise,selected_organization_ids,});
name | required | description |
---|---|---|
enterprise | yes | The slug version of the enterprise name. You can also substitute this value with the enterprise id. |
selected_organization_ids | yes | List of organization IDs to enable for GitHub Actions. |
See also: GitHub Developer Guide documentation.