AppScan
Browse all 61 articles
API

GitHub and change sets

Installing the App, connecting repositories, and reading commits, change sets, dependencies and pull requests.

MethodPathNeedsReturns
POST/github/install-linksrepository.connect201 { url, expiresAt }, single-use for fifteen minutes
GET/github/callback?installation_id=&state=publicbinds the installation to your organization
GET/github/installationsrepository.readinstallations linked to the organization
GET/github/installations/:id/repositoriesrepository.readrepositories with connectedSiteId
POST/github/webhookspublic, signed202; verified, deduplicated, minimized, queued
POST/sites/:siteId/repositoriesrepository.connect201; one repository per site; queues the inventory
GET/sites/:siteId/repositoriesrepository.readrepositories with sourceState and pending change sets
DELETE/repositories/:idrepository.connect204; stops monitoring, keeps history
GET/repositories/:id/commitsrepository.readpaginated
GET/repositories/:id/change-setsrepository.readpaginated
GET/repositories/:id/dependenciesrepository.readexact resolved versions from lockfiles
GET/repositories/:id/pull-requestsrepository.readchange sets opened by a pull request, with its verdict
GET/change-sets/:idrepository.readstatus, result, changeRisk { score, band }, classification
GET/change-sets/:id/filesrepository.readthe diff, paged
POST/change-sets/:id/analyzescan.startanalyze a pending change set now
GET/sites/:siteId/code-improverepository.readthe code-improve reading for the site

Something here wrong, missing or out of date? Tell us and we will fix the page.