Repositories API
Manage GitHub and GitLab repository connections, branch configurations, and webhook bindings.
Repository Management Endpoints
Connect private and public repositories to trigger automated scans upon push and pull request events.
Endpoints Reference (1)
GET/api/v1/github/repositories
Permission: GITHUB_READList accessible GitHub repositories
Request Example (cURL)
curl -X GET "http://localhost:8000/api/v1/github/repositories" \
-H "Authorization: Bearer YOUR_API_TOKEN"Response (200 Accessible GitHub repositories listed)
[
{
"id": 12849102,
"full_name": "kavach/security-core",
"private": true,
"default_branch": "main"
}
]