capabilities.work

Set default GITHUB_TOKEN permissions for a repo

One step with GitHub Actions. We can help you get access.

Get something done

Set default GITHUB_TOKEN permissions for a repo

Works with AI assistants

Use GitHub Actions: its GitHub Actions Permissions API lets you set default GITHUB_TOKEN permissions for a repo in a single step (PUT /repos/{owner}/{repo}/actions/permissions/workflow). GitHub Actions also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • How do I make the GITHUB_TOKEN read-only by default in a repository?
  • Can I stop workflows from approving pull request reviews in my repo?
Say it to your AI assistant
  • Set the default GITHUB_TOKEN permissions in {owner}/{repo} to {default_workflow_permissions}.
  • Set whether workflows in {owner}/{repo} can approve PR reviews to {can_approve_pull_request_reviews}.
For your developer

PUT /repos/{owner}/{repo}/actions/permissions/workflow in GitHub Actions Permissions API. Full spec on APIs.io.