actionsSetGithubActionsPermissionsRepository
Set GitHub Actions permissions for a repository
PUT /repos/{owner}/{repo}/actions/permissions HTTP/1.1Parameters
{
"owner": {
"description": "The account owner of the repository. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
},
"repo": {
"description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
},
"enabled": {
"description": "Whether GitHub Actions is enabled on the repository.",
"required": true,
"location": "body",
"type": "boolean"
},
"allowed_actions": {
"description": "The permissions policy that controls the actions and reusable workflows that are allowed to run.",
"required": false,
"location": "body",
"type": "string",
"enum": [
"all",
"local_only",
"selected"
]
},
"sha_pinning_required": {
"description": "Whether actions must be pinned to a full-length commit SHA.",
"required": false,
"location": "body",
"type": "boolean"
}
}