{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Sets the GitHub Actions permissions policy for enabling GitHub Actions and allowed actions and reusable workflows in the 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":{"type":"object","properties":{"enabled":{"$ref":"#/definitions/actions-enabled"},"allowed_actions":{"$ref":"#/definitions/allowed-actions"},"sha_pinning_required":{"$ref":"#/definitions/sha-pinning-required"}},"required":["enabled"],"examples":[{"enabled":true,"allowed_actions":"selected","sha_pinning_required":true}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"actions-enabled":{"type":"boolean","description":"Whether GitHub Actions is enabled on the repository."},"allowed-actions":{"type":"string","description":"The permissions policy that controls the actions and reusable workflows that are allowed to run.","enum":["all","local_only","selected"]},"sha-pinning-required":{"type":"boolean","description":"Whether actions must be pinned to a full-length commit SHA."}}},"name":"Set GitHub Actions permissions for a repository","id":"github.actions.set-github-actions-permissions-repository","example":{"path":{"owner":"octocat","repo":"hello-world"},"body":{"enabled":true,"allowed_actions":"selected","sha_pinning_required":true}},"maxRequests":1,"summary":false}}