default_workflow_permissions
Overview
Name | default_workflow_permissions |
Type | Resource |
Id | github.actions.default_workflow_permissions |
Fields
Name | Datatype | Description |
---|---|---|
can_approve_pull_request_reviews | boolean | Whether GitHub Actions can approve pull requests. Enabling this can be a security risk. |
default_workflow_permissions | string | The default workflow permissions granted to the GITHUB_TOKEN when running workflows. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_github_actions_default_workflow_permissions_organization | SELECT | org | Gets the default workflow permissions granted to the GITHUB_TOKEN when running workflows in an organization,as well as whether GitHub Actions can submit approving pull request reviews. For more information, see "Setting the permissions of the GITHUB_TOKEN for your 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. |
get_github_actions_default_workflow_permissions_repository | SELECT | owner, repo | Gets the default workflow permissions granted to the GITHUB_TOKEN when running workflows in a repository,as well as if GitHub Actions can submit approving pull request reviews. For more information, see "Setting the permissions of the GITHUB_TOKEN for your repository." You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have the repository administration permission to use this API. |
set_github_actions_default_workflow_permissions_organization | EXEC | org | Sets the default workflow permissions granted to the GITHUB_TOKEN when running workflows in an organization, and sets if GitHub Actionscan submit approving pull request reviews. For more information, see "Setting the permissions of the GITHUB_TOKEN for your 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. |
set_github_actions_default_workflow_permissions_repository | EXEC | owner, repo | Sets the default workflow permissions granted to the GITHUB_TOKEN when running workflows in a repository, and sets if GitHub Actionscan submit approving pull request reviews. For more information, see "Setting the permissions of the GITHUB_TOKEN for your repository." You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have the repository administration permission to use this API. |