enabled_repos
Creates, updates, deletes, gets or lists an enabled_repos resource.
Overview
| Name | enabled_repos |
| Type | Resource |
| Id | github.actions.enabled_repos |
Fields
The following fields are returned by SELECT queries:
- list_selected_repositories_enabled_github_actions_organization
Response
| Name | Datatype | Description |
|---|---|---|
repositories | array | |
total_count | number |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_selected_repositories_enabled_github_actions_organization | select | org | per_page, page | 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."OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint. |
enable_selected_repository_github_actions_organization | replace | org, repository_id | Adds a repository to the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for enabled_repositories must be must be configured to selected. For more information, see "Set GitHub Actions permissions for an organization."OAuth tokens and personal access tokens (classic) need the admin:org scope to use this endpoint. | |
set_selected_repositories_enabled_github_actions_organization | replace | org, selected_repository_ids | Replaces the list of 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."OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint. | |
disable_selected_repository_github_actions_organization | delete | org, repository_id | Removes a repository from the list of 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."OAuth tokens and personal access tokens (classic) need the admin:org scope to use this endpoint. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
org | string | The organization name. The name is not case sensitive. |
repository_id | integer | The unique identifier of the repository. |
page | integer | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
per_page | integer | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
SELECT examples
- list_selected_repositories_enabled_github_actions_organization
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."
OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.
SELECT
repositories,
total_count
FROM github.actions.enabled_repos
WHERE org = '{{ org }}' -- required
AND per_page = '{{ per_page }}'
AND page = '{{ page }}'
;
REPLACE examples
- enable_selected_repository_github_actions_organization
- set_selected_repositories_enabled_github_actions_organization
Adds a repository to the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for enabled_repositories must be must be configured to selected. For more information, see "Set GitHub Actions permissions for an organization."
OAuth tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.
REPLACE github.actions.enabled_repos
SET
-- No updatable properties
WHERE
org = '{{ org }}' --required
AND repository_id = '{{ repository_id }}' --required;
Replaces the list of 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."
OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.
REPLACE github.actions.enabled_repos
SET
selected_repository_ids = '{{ selected_repository_ids }}'
WHERE
org = '{{ org }}' --required
AND selected_repository_ids = '{{ selected_repository_ids }}' --required;
DELETE examples
- disable_selected_repository_github_actions_organization
Removes a repository from the list of 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."
OAuth tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.
DELETE FROM github.actions.enabled_repos
WHERE org = '{{ org }}' --required
AND repository_id = '{{ repository_id }}' --required
;