Skip to main content
The REST API is now versioned. For more information, see "About API versioning."

REST API endpoints for Dependabot repository access

Use the REST API to manage which repositories Dependabot can access within an organization.

About Dependabot repository access

You can list repositories that Dependabot already has access to and set a default repository access level for Dependabot.

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.

Fine-grained access tokens for "Lists the repositories Dependabot can access in an enterprise"

This endpoint works with the following fine-grained token types:

The fine-grained token must have the following permission set:

  • "Enterprise administration" enterprise permissions (read)

Parameters for "Lists the repositories Dependabot can access in an enterprise"

Headers
Name, Type, Description
accept string

Setting to application/vnd.github+json is recommended.

Path parameters
Name, Type, Description
enterprise string Required

The slug version of the enterprise name.

Query parameters
Name, Type, Description
page integer

The page number of results to fetch.

Default: 1