permissions
Overview
Name | permissions |
Type | Resource |
Id | github.actions.permissions |
Fields
Name | Datatype | Description |
---|---|---|
allowed_actions | string | The permissions policy that controls the actions and reusable workflows that are allowed to run. |
enabled | boolean | Whether GitHub Actions is enabled on the repository. |
selected_actions_url | string | The API URL to use to get or set the actions and reusable workflows that are allowed to run, when allowed_actions is set to selected . |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_github_actions_permissions_repository | SELECT | owner, repo | Gets the GitHub Actions permissions policy for a repository, including whether GitHub Actions is enabled and the actions and reusable workflows allowed to run in the repository. You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have the administration repository permission to use this API. |
set_github_actions_permissions_repository | EXEC | owner, repo, data__enabled | Sets the GitHub Actions permissions policy for enabling GitHub Actions and allowed actions and reusable workflows in the repository. You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have the administration repository permission to use this API. |