Validate GitHub deployment source
sources.github.validateValidate a public GitHub repository without connecting an account, or validate private repository access with the project's stored GitHub connection. Check the exact branch and commit, Dockerfile presence, and named BuildKit context repositories without creating or changing infrastructure.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"branch": "dev",
"project_id": "project-id",
"build_contexts": [
{
"name": "biometric-sdk",
"branch": "main",
"repository_url": "https://github.com/DataInfosec/biometric-sdk"
}
],
"repository_url": "https://github.com/DataInfosec/tanda-campus",
"dockerfile_path": "deployments/Dockerfile"
},
"name": "sources.github.validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | branch; defaults to the repository default branch | |
| project_id | No | project in the selected organization; omit only when the organization has one project | |
| workload_path | No | optional primary repository subdirectory | |
| build_contexts | No | named GitHub build contexts to validate with the same credential | |
| repository_url | Yes | primary GitHub repository URL | |
| dockerfile_path | No | Dockerfile path relative to workload_path; defaults to Dockerfile | |
| organization_id | No | organization membership to use for this call; omit only when the account has one current membership |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |