reposCheckPrivateVulnerabilityReporting
Check if private vulnerability reporting is enabled for a repository
Details
- Method:
GET - Path:
/repos/{owner}/{repo}/private-vulnerability-reporting - Operation ID:
repos/check-private-vulnerability-reporting
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 or not private vulnerability reporting is enabled for the repository."
}
},
"required": [
"enabled"
]
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('reposCheckPrivateVulnerabilityReporting', {
# Add required parameters here
})