PATCH
/orgs/{org}/code-security/configurations/{configuration_id}Update a code security configuration
Updates a code security configuration in 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 write:org scope to use this endpoint.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
orgstringrequired
The organization name. The name is not case sensitive.
configuration_idintegerrequired
The unique identifier of the code security configuration.
namestringoptional
The name of the code security configuration. Must be unique within the organization.
descriptionstringoptional
A description of the code security configuration
advanced_securitystringoptional
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_securitystringoptional
The enablement status of GitHub Code Security features.
dependency_graphstringoptional
The enablement status of Dependency Graph
dependency_graph_autosubmit_actionstringoptional
The enablement status of Automatic dependency submission
dependency_graph_autosubmit_action_optionsobjectoptional
Feature options for Automatic dependency submission
dependabot_alertsstringoptional
The enablement status of Dependabot alerts
dependabot_security_updatesstringoptional
The enablement status of Dependabot security updates
dependabot_delegated_alert_dismissalstringoptional
The enablement status of Dependabot delegated alert dismissal. Requires Dependabot alerts to be enabled.
code_scanning_default_setupstringoptional
The enablement status of code scanning default setup
code_scanning_default_setup_optionsobjectoptional
Feature options for code scanning default setup
code_scanning_optionsobjectoptional
Security Configuration feature options for code scanning
code_scanning_delegated_alert_dismissalstringoptional
The enablement status of code scanning delegated alert dismissal
secret_protectionstringoptional
The enablement status of GitHub Secret Protection features.
secret_scanningstringoptional
The enablement status of secret scanning
secret_scanning_push_protectionstringoptional
The enablement status of secret scanning push protection
secret_scanning_delegated_bypassstringoptional
The enablement status of secret scanning delegated bypass
secret_scanning_delegated_bypass_optionsobjectoptional
Feature options for secret scanning delegated bypass
secret_scanning_validity_checksstringoptional
The enablement status of secret scanning validity checks
secret_scanning_non_provider_patternsstringoptional
The enablement status of secret scanning non-provider patterns
secret_scanning_generic_secretsstringoptional
The enablement status of Copilot secret scanning
secret_scanning_delegated_alert_dismissalstringoptional
The enablement status of secret scanning delegated alert dismissal
secret_scanning_extended_metadatastringoptional
The enablement status of secret scanning extended metadata
private_vulnerability_reportingstringoptional
The enablement status of private vulnerability reporting
enforcementstringoptional
The enforcement status for a security configuration
200Response when a configuration is updated
idintegeroptional
The ID of the code security configuration
namestringoptional
The name of the code security configuration. Must be unique within the organization.
target_typestringoptional
The type of the code security configuration.
descriptionstringoptional
A description of the code security configuration
advanced_securitystringoptional
The enablement status of GitHub Advanced Security
dependency_graphstringoptional
The enablement status of Dependency Graph
dependency_graph_autosubmit_actionstringoptional
The enablement status of Automatic dependency submission
dependency_graph_autosubmit_action_optionsobjectoptional
Feature options for Automatic dependency submission
dependabot_alertsstringoptional
The enablement status of Dependabot alerts
dependabot_security_updatesstringoptional
The enablement status of Dependabot security updates
dependabot_delegated_alert_dismissalstringoptional
The enablement status of Dependabot delegated alert dismissal
code_scanning_optionsobjectoptional
Feature options for code scanning
code_scanning_default_setupstringoptional
The enablement status of code scanning default setup
code_scanning_default_setup_optionsobjectoptional
Feature options for code scanning default setup
code_scanning_delegated_alert_dismissalstringoptional
The enablement status of code scanning delegated alert dismissal
secret_scanningstringoptional
The enablement status of secret scanning
secret_scanning_push_protectionstringoptional
The enablement status of secret scanning push protection
secret_scanning_delegated_bypassstringoptional
The enablement status of secret scanning delegated bypass
secret_scanning_delegated_bypass_optionsobjectoptional
Feature options for secret scanning delegated bypass
secret_scanning_validity_checksstringoptional
The enablement status of secret scanning validity checks
secret_scanning_non_provider_patternsstringoptional
The enablement status of secret scanning non-provider patterns
secret_scanning_generic_secretsstringoptional
The enablement status of Copilot secret scanning
secret_scanning_delegated_alert_dismissalstringoptional
The enablement status of secret scanning delegated alert dismissal
secret_scanning_extended_metadatastringoptional
The enablement status of secret scanning extended metadata
private_vulnerability_reportingstringoptional
The enablement status of private vulnerability reporting
enforcementstringoptional
The enforcement status for a security configuration
urlstringoptional
The URL of the configuration
html_urlstringoptional
The URL of the configuration
created_atstringoptional
updated_atstringoptional
204Response when no new updates are made