{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Sets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in a repository, and sets if GitHub Actions\ncan submit approving pull request reviews.\nFor more information, see \"[Setting the permissions of the GITHUB_TOKEN for your repository](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#setting-the-permissions-of-the-github_token-for-your-repository).\"\n\nOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.","properties":{"path":{"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 without the `.git` extension. The name is not case sensitive."}},"required":["owner","repo"],"additionalProperties":false},"body":{"$ref":"#/definitions/actions-set-default-workflow-permissions"}},"required":["path","body"],"additionalProperties":false,"definitions":{"actions-set-default-workflow-permissions":{"type":"object","properties":{"default_workflow_permissions":{"$ref":"#/definitions/actions-default-workflow-permissions"},"can_approve_pull_request_reviews":{"$ref":"#/definitions/actions-can-approve-pull-request-reviews"}}},"actions-default-workflow-permissions":{"type":"string","description":"The default workflow permissions granted to the GITHUB_TOKEN when running workflows.","enum":["read","write"]},"actions-can-approve-pull-request-reviews":{"type":"boolean","description":"Whether GitHub Actions can approve pull requests. Enabling this can be a security risk."}}},"name":"Set default workflow permissions for a repository","id":"github.actions.set-github-actions-default-workflow-permissions-repository","example":{"path":{"owner":"octocat","repo":"hello-world"},"body":{}},"maxRequests":1,"summary":false}}