code-security

Get default code security configurations

Changed on

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

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/orgs/{org}/code-security/configurations/defaults
  • Auth: none declared

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

Changes

  • 2022-11-28a2954a79ff13Revision changes
    • warning

      added the new enterprise_enforced enum value to the // response property for the response status

  • 2022-11-28bf794926a84dRevision changes
    • breaking

      the response property // became nullable for the status