apicheats.dev Cheat sheet Raw .md
PUT

Try PUT /repos/{owner}/{repo}/actions/permissions — GitHub API

GitHub playground

Set GitHub Actions permissions for a repository

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

3 body fields
  • enabled · required · boolean — Whether GitHub Actions is enabled on the repository.
  • allowed_actions · optional · string — The permissions policy that controls the actions and reusable workflows that are allowed to run.
  • sha_pinning_required · optional · boolean — Whether actions must be pinned to a full-length commit SHA.