Sample - GitHub REST API
GET/enterprises/{enterprise}/dependabot/repository-access

Lists the repositories Dependabot can access in an enterprise

Lists repositories that enterprise admins have allowed Dependabot to access when updating dependencies across organizations in the enterprise.

The authenticated user must be an enterprise owner to use this endpoint.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters
enterprisestringrequired
The slug version of the enterprise name.
pageintegeroptional
The page number of results to fetch.
Default:1
per_pageintegeroptional
Number of results per page.
Default:30

3 status codes
200Response
default_levelstringoptional
The default repository access level for Dependabot updates.
Allowed:publicinternal
accessible_repositoriesarray<SimpleRepository>optional
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 403 is returned: Forbidden. A 404 is returned: Resource not found.