{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Sets the GitHub Actions permissions policy for repositories and allowed actions and reusable workflows in an organization.\n\nOAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."}},"required":["org"],"additionalProperties":false},"body":{"type":"object","properties":{"enabled_repositories":{"$ref":"#/definitions/enabled-repositories"},"allowed_actions":{"$ref":"#/definitions/allowed-actions"},"sha_pinning_required":{"$ref":"#/definitions/sha-pinning-required"}},"required":["enabled_repositories"],"examples":[{"enabled_repositories":"all","allowed_actions":"selected","sha_pinning_required":true}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"enabled-repositories":{"type":"string","description":"The policy that controls the repositories in the organization that are allowed to run GitHub Actions.","enum":["all","none","selected"]},"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 an organization","id":"github.actions.set-github-actions-permissions-organization","example":{"path":{"org":"example"},"body":{"enabled_repositories":"all","allowed_actions":"selected","sha_pinning_required":true}},"maxRequests":1,"summary":false}}