actionsSetGithubActionsDefaultWorkflowPermissionsRepository
Set default workflow permissions for a repository
PUT /repos/{owner}/{repo}/actions/permissions/workflow 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"
},
"default_workflow_permissions": {
"description": "The default workflow permissions granted to the GITHUB_TOKEN when running workflows.",
"required": false,
"location": "body",
"type": "string",
"enum": [
"read",
"write"
]
},
"can_approve_pull_request_reviews": {
"description": "Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.",
"required": false,
"location": "body",
"type": "boolean"
}
}