PUT
/orgs/{org}/actions/permissions/workflowSet default workflow permissions for an organization
Sets the default workflow permissions granted to the GITHUB_TOKEN when running workflows in an organization, and sets if GitHub Actions
can submit approving pull request reviews. For more information, see
"Setting the permissions of the GITHUB_TOKEN for your organization."
OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
orgstringrequired
The organization name. The name is not case sensitive.
default_workflow_permissionsstringoptional
The default workflow permissions granted to the GITHUB_TOKEN when running workflows.
can_approve_pull_request_reviewsbooleanoptional
Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.
204Success response