provider dependabot PUT
/enterprises/{enterprise}/dependabot/repository-access/default-level @utdk/github
/enterprises/{enterprise}/dependabot/repository-access/default-level Set the default repository access level for Dependabot in an enterprise
Sets the default level of repository access Dependabot will have while performing an update across organizations in the enterprise. 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.
The authenticated user must be an enterprise owner to use this endpoint.
- enterprise path required
- The slug version of the enterprise name.
- string
Try it
Authentication
Configure credentials for GitHub v3 REST API
Code snippet
Updates live as you fill in the form above.
TypeScript
import github from '@utdk/github';
await github.dependabot.setRepositoryAccessDefaultLevelForEnterprise()