GET
/enterprises/{enterprise}/code-security/configurations/{configuration_id}Retrieve a code security configuration of an enterprise
Gets a code security configuration available 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 read:enterprise scope to use this endpoint.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
enterprisestringrequired
The slug version of the enterprise name.
configuration_idintegerrequired
The unique identifier of the code security configuration.
200Response
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
304Not modified
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 403 is returned: Forbidden. A 404 is returned: Resource not found.