apicheats.dev Cheat sheet Raw .md
POST

Try POST /enterprises/{enterprise}/code-security/configurations — GitHub API

GitHub playground

Create a code security configuration for an enterprise

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

23 body fields
  • name · required · string — The name of the code security configuration. Must be unique within the enterprise.
  • description · optional · string — A description of the code security configuration
  • advanced_security · optional · string — 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.
  • code_security · optional · string — The enablement status of GitHub Code Security features.
  • dependency_graph · optional · string — The enablement status of Dependency Graph
  • dependency_graph_autosubmit_action · optional · string — The enablement status of Automatic dependency submission
  • dependency_graph_autosubmit_action_options · optional · object — Feature options for Automatic dependency submission
  • dependabot_alerts · optional · string — The enablement status of Dependabot alerts
  • dependabot_security_updates · optional · string — The enablement status of Dependabot security updates
  • code_scanning_options · optional · object — Security Configuration feature options for code scanning
  • code_scanning_default_setup · optional · string — The enablement status of code scanning default setup
  • code_scanning_default_setup_options · optional · object — Feature options for code scanning default setup
  • code_scanning_delegated_alert_dismissal · optional · string — The enablement status of code scanning delegated alert dismissal
  • secret_protection · optional · string — The enablement status of GitHub Secret Protection features.
  • secret_scanning · optional · string — The enablement status of secret scanning
  • secret_scanning_push_protection · optional · string — The enablement status of secret scanning push protection
  • secret_scanning_validity_checks · optional · string — The enablement status of secret scanning validity checks
  • secret_scanning_non_provider_patterns · optional · string — The enablement status of secret scanning non provider patterns
  • secret_scanning_generic_secrets · optional · string — The enablement status of Copilot secret scanning
  • secret_scanning_delegated_alert_dismissal · optional · string — The enablement status of secret scanning delegated alert dismissal
  • secret_scanning_extended_metadata · optional · string — The enablement status of secret scanning extended metadata
  • private_vulnerability_reporting · optional · string — The enablement status of private vulnerability reporting
  • enforcement · optional · string — The enforcement status for a security configuration