v56

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

Get default code security configurations

Lists the default code security configurations for an organization.

The authenticated user must be an administrator or security manager for the organization to use this endpoint.

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

get/orgs/{org}/code-security/configurations/defaults

Path parameters

orgstring required

The organization name. The name is not case sensitive.

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