v68

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,21696712.3 MB
actions

Set GitHub Actions permissions for a repository

Sets the GitHub Actions permissions policy for enabling GitHub Actions and allowed actions and reusable workflows in the repository.

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

put/repos/{owner}/{repo}/actions/permissions

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

Request body

enabledboolean 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.

sha_pinning_requiredboolean

Whether actions must be pinned to a full-length commit SHA.

Response

Response