apicheats.dev Cheat sheet Raw .md
PUT

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

GitHub playground

Set default workflow 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

2 body fields
  • default_workflow_permissions · optional · string — The default workflow permissions granted to the GITHUB_TOKEN when running workflows.
  • can_approve_pull_request_reviews · optional · boolean — Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.