---
title: "Get GitHub Actions permissions for a repository"
method: GET
path: "/repos/{owner}/{repo}/actions/permissions"
tags: ["actions"]
---

# Get GitHub Actions permissions for a repository

`GET /repos/{owner}/{repo}/actions/permissions`

Gets the GitHub Actions permissions policy for a repository, including whether GitHub Actions is enabled and the actions and reusable workflows allowed to run in the repository.

OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.

## Path parameters

- `owner` string, required
- `repo` string, required

## Response `200`

Response

- ActionsRepositoryPermissions
  - `enabled` boolean, required — Whether GitHub Actions is enabled on the repository.
  - `allowed_actions` 'all' | 'local_only' | 'selected' — The permissions policy that controls the actions and reusable workflows that are allowed to run.
  - `selected_actions_url` string — The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.
  - `sha_pinning_required` boolean — Whether actions must be pinned to a full-length commit SHA.

---

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