---
title: "Set GitHub Actions permissions for an organization"
method: PUT
path: "/orgs/{org}/actions/permissions"
tags: ["actions"]
---

# Set GitHub Actions permissions for an organization

`PUT /orgs/{org}/actions/permissions`

Sets the GitHub Actions permissions policy for repositories and allowed actions in an organization.

If the organization belongs to an enterprise that has set restrictive permissions at the enterprise level, such as `allowed_actions` to `selected` actions, then you cannot override them for the organization.

You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.

## Path parameters

- `org` string, required

## Request body

- object
  - `enabled_repositories` 'all' | 'none' | 'selected', required — The policy that controls the repositories in the organization that are allowed to run GitHub Actions.
  - `allowed_actions` 'all' | 'local_only' | 'selected' — The permissions policy that controls the actions that are allowed to run.

## Response `204`

Response

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-4.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-4/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-4/versions/ee6c7a46328e/schema)
