Skip to main content

Download a GitHub repository for an assessment

POST 

/api/v1/integrations/github/repos/:owner/:repo/fetch

Download a GitHub repository as a zip archive and store it under the assessment.

The archive is fetched using the installation access token, uploaded to object storage under assessments/<assessment_mongo_id>/source/<owner>-<repo>-<branch>.zip, and the storage key is returned so the caller can register the source on the assessment draft.

  • Scope required: integrations:manage.
  • Rate-limit tier: integrations_fetch (10/hour per user).
  • The target assessment must belong to the caller's organization.
  • 500 if the object storage upload fails.

Request

Responses

Successful Response