dependabot

Set the default repository access level for Dependabot

Changed on

Sets the default level of repository access Dependabot will have while performing an update. Available values are:

  • 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories.
  • 'internal' - Dependabot will only have access to public and internal repositories, unless access is explicitly granted to private repositories.

Unauthorized users will not see the existence of this endpoint.

This operation supports both server-to-server and user-to-server access.

OAuth app tokens and personal access tokens (classic) need the write:org scope to use this endpoint.

put/orgs/{org}/dependabot/repository-access/default-level

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/orgs/{org}/dependabot/repository-access/default-level
  • Auth: none declared

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Request body

default_level'public' | 'internal' required

The default repository access level for Dependabot updates.

Example request

{
  "default_level": "internal"
}

Response

Response

Changes