dependabotGetRepoPublicKey
Get a repository public key
Details
- Method:
GET - Path:
/repos/{owner}/{repo}/dependabot/secrets/public-key - Operation ID:
dependabot/get-repo-public-key
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
{
"title": "DependabotPublicKey",
"description": "The public key used for setting Dependabot Secrets.",
"type": "object",
"properties": {
"key_id": {
"description": "The identifier for the key.",
"type": "string",
"example": "1234567"
},
"key": {
"description": "The Base64 encoded public key.",
"type": "string",
"example": "hBT5WZEj8ZoOv6TYJsfWq7MxTEQopZO5/IT3ZCVQPzs="
}
},
"required": [
"key_id",
"key"
]
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('dependabotGetRepoPublicKey', {
# Add required parameters here
})