Skip to main content

permissions

Overview

Namepermissions
TypeResource
Idgithub.actions.permissions

Fields

NameDatatypeDescription
allowed_actionsstringThe permissions policy that controls the actions and reusable workflows that are allowed to run.
enabledbooleanWhether GitHub Actions is enabled on the repository.
selected_actions_urlstringThe 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

NameAccessible byRequired ParamsDescription
get_github_actions_permissions_repositorySELECTowner, repoGets 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_repositoryEXECowner, repo, data__enabledSets 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.