Open Context Protocol is live! 🚀 Read the launch post
actionsGetWorkflowAccessToRepository

actionsGetWorkflowAccessToRepository

Get the level of access for workflows outside of the repository

GET /repos/{owner}/{repo}/actions/permissions/access HTTP/1.1

Parameters

{
  "owner": {
    "description": "The account owner of the repository. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "repo": {
    "description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  }
}

Response Schema

{
  "type": "object",
  "properties": {
    "access_level": {
      "type": "string",
      "description": "Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the\nrepository.\n\n`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization.",
      "enum": [
        "none",
        "user",
        "organization"
      ]
    }
  },
  "required": [
    "access_level"
  ]
}