codeScanningUpdateDefaultSetup
Update a code scanning default setup configuration
Details
- Method:
PATCH - Path:
/repos/{owner}/{repo}/code-scanning/default-setup - Operation ID:
code-scanning/update-default-setup
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"
},
"state": {
"description": "The desired state of code scanning default setup.",
"required": false,
"location": "body",
"type": "string",
"enum": [
"configured",
"not-configured"
]
},
"runner_type": {
"description": "Runner type to be used.",
"required": false,
"location": "body",
"type": "string",
"enum": [
"standard",
"labeled"
]
},
"runner_label": {
"description": "Runner label to be used if the runner type is labeled.",
"required": false,
"location": "body",
"type": "string"
},
"query_suite": {
"description": "CodeQL query suite to be used.",
"required": false,
"location": "body",
"type": "string",
"enum": [
"default",
"extended"
]
},
"threat_model": {
"description": "Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.",
"required": false,
"location": "body",
"type": "string",
"enum": [
"remote",
"remote_and_local"
]
},
"languages": {
"description": "CodeQL languages to be analyzed.",
"required": false,
"location": "body",
"type": "array"
}
}Response Schema
{
"title": "Empty Object",
"description": "An object without any properties.",
"type": "object",
"properties": {},
"additionalProperties": false
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('codeScanningUpdateDefaultSetup', {
# Add required parameters here
})