Back to GithubSet default workflow permissions for a repository
Sets the default workflow permissions granted to the GITHUB_TOKEN
when running workflows in a repository, and sets 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.
Input
type: object
properties:
parameters:
type: object
properties:
owner:
type: string
description: The account owner of the repository. The name is not case sensitive.
repo:
type: string
description: The name of the repository. The name is not case sensitive.
required:
- owner
- repo
title: Parameters
data:
type: object
properties:
default_workflow_permissions:
type: string
description: >-
The default workflow permissions granted to the GITHUB_TOKEN when
running workflows.
enum:
- read
- write
can_approve_pull_request_reviews:
type: boolean
description: >-
Whether GitHub Actions can approve pull requests. Enabling this can be
a security risk.
title: Data