Create a code security configuration for an enterprise
Creates a code security configuration in 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 admin:enterprise scope to use this endpoint.
Path parameters
The slug version of the enterprise name.
Request body
The name of the code security configuration. Must be unique within the enterprise.
A description of the code security configuration
The enablement status of GitHub Advanced Security features. enabled will enable both Code Security and Secret Protection features.
[!WARNING] code_security and secret_protection are deprecated values for this field. Prefer the individual code_security and secret_protection fields to set the status of these features.
The enablement status of GitHub Code Security features.
The enablement status of Dependency Graph
The enablement status of Automatic dependency submission
The enablement status of Dependabot alerts
The enablement status of Dependabot security updates
The enablement status of code scanning default setup
The enablement status of code scanning delegated alert dismissal
The enablement status of GitHub Secret Protection features.
The enablement status of secret scanning
The enablement status of secret scanning push protection
The enablement status of secret scanning validity checks
The enablement status of secret scanning non provider patterns
The enablement status of Copilot secret scanning
The enablement status of secret scanning delegated alert dismissal
The enablement status of secret scanning extended metadata
The enablement status of private vulnerability reporting
The enforcement status for a security configuration
Response
Successfully created code security configuration
The ID of the code security configuration
The name of the code security configuration. Must be unique within the organization.
The type of the code security configuration.
A description of the code security configuration
The enablement status of GitHub Advanced Security
The enablement status of Dependency Graph
The enablement status of Automatic dependency submission
The enablement status of Dependabot alerts
The enablement status of Dependabot security updates
The enablement status of Dependabot delegated alert dismissal
The enablement status of code scanning default setup
The enablement status of code scanning delegated alert dismissal
The enablement status of secret scanning
The enablement status of secret scanning push protection
The enablement status of secret scanning delegated bypass
The enablement status of secret scanning validity checks
The enablement status of secret scanning non-provider patterns
The enablement status of Copilot secret scanning
The enablement status of secret scanning delegated alert dismissal
The enablement status of secret scanning extended metadata
The enablement status of private vulnerability reporting
The enforcement status for a security configuration
The URL of the configuration
The URL of the configuration