Get allowed actions for a repository

Gets the settings for selected actions that are allowed in a repository. To use this endpoint, the repository policy for allowed_actions must be configured to selected. For more information, see "Set GitHub Actions permissions for a repository."

You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have the administration repository permission to use this API.


string The token will be passed in the authorization header.




GET https://api.github.com/repos///actions/permissions/selected-actions
authorization: bearer undefined
accept: application/vnd.github.v3+json
user-agent: octokit.rest

Example Response

Status: 200
  "github_owned_allowed": true,
  "verified_allowed": false,
  "patterns_allowed": [

See documentation on GitHub developer guides