actionsGetGithubActionsPermissionsRepository
Get GitHub Actions permissions for a repository
Details
- Method:
GET - Path:
/repos/{owner}/{repo}/actions/permissions - Operation ID:
actions/get-github-actions-permissions-repository
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": {
"enabled": {
"type": "boolean",
"description": "Whether GitHub Actions is enabled on the repository."
},
"allowed_actions": {
"type": "string",
"description": "The permissions policy that controls the actions and reusable workflows that are allowed to run.",
"enum": [
"all",
"local_only",
"selected"
]
},
"selected_actions_url": {
"type": "string",
"description": "The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`."
},
"sha_pinning_required": {
"type": "boolean",
"description": "Whether actions must be pinned to a full-length commit SHA."
}
},
"required": [
"enabled"
]
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('actionsGetGithubActionsPermissionsRepository', {
# Add required parameters here
})