v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
code-security

Get default code security configurations for an enterprise

Lists the default code security configurations for an enterprise.

The authenticated user must be an administrator of the enterprise in order to use this endpoint.

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

get/enterprises/{enterprise}/code-security/configurations/defaults

Path parameters

enterprisestring required

The slug version of the enterprise name.

Response

Response

default_for_new_repos'public' | 'private_and_internal' | 'all'

The visibility of newly created repositories for which the code security configuration will be applied to by default