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