Sample - GitHub REST API
GET/orgs/{org}/dependabot/repository-access

Lists the repositories Dependabot can access in an organization

Lists repositories that organization admins have allowed Dependabot to access when updating dependencies.

[!NOTE] This operation supports both server-to-server and user-to-server access. Unauthorized users will not see the existence of this endpoint.

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

3 parameters
orgstringrequired
The organization name. The name is not case sensitive.
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.