Home / Servers / GitHub API / code_security_update_enterprise_configuration
Update a custom code security configuration for an enterprise
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
Update a custom code security configuration for an enterprise Updates 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… [PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}]
Name on the gateway: github_api__code_security_update_enterprise_configuration · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
enterprise required | string | The slug version of the enterprise name. |
configuration_id required | integer | The unique identifier of the code security configuration. |
name | string | The name of the code security configuration. Must be unique across the… |
description | string | A description of the code security configuration |
advanced_security | enabled | disabled | code_security | secret_protection | The enablement status of GitHub Advanced Security features. enabled will… |
code_security | enabled | disabled | not_set | The enablement status of GitHub Code Security features. |
dependency_graph | enabled | disabled | not_set | The enablement status of Dependency Graph |
dependency_graph_autosubmit_action | enabled | disabled | not_set | The enablement status of Automatic dependency submission |
dependency_graph_autosubmit_action_options | object | Feature options for Automatic dependency submission |
dependabot_alerts | enabled | disabled | not_set | The enablement status of Dependabot alerts |
dependabot_reachability | enabled | disabled | not_set | The enablement status of reachability analysis for Dependabot. Only available… |
dependabot_security_updates | enabled | disabled | not_set | The enablement status of Dependabot security updates |
code_scanning_default_setup | enabled | disabled | not_set | The enablement status of code scanning default setup |
code_scanning_default_setup_options | object | Feature options for code scanning default setup |
code_scanning_options | object | Security Configuration feature options for code scanning |
code_scanning_delegated_alert_dismissal | enabled | disabled | not_set | The enablement status of code scanning delegated alert dismissal |
secret_protection | enabled | disabled | not_set | The enablement status of GitHub Secret Protection features. |
secret_scanning | enabled | disabled | not_set | The enablement status of secret scanning |
secret_scanning_push_protection | enabled | disabled | not_set | The enablement status of secret scanning push protection |
secret_scanning_validity_checks | enabled | disabled | not_set | The enablement status of secret scanning validity checks |
secret_scanning_non_provider_patterns | enabled | disabled | not_set | The enablement status of secret scanning non-provider patterns |
secret_scanning_generic_secrets | enabled | disabled | not_set | The enablement status of Copilot secret scanning |
secret_scanning_generic_secrets_push_protection | enabled | disabled | not_set | The enablement status of generic secrets push protection |
secret_scanning_delegated_alert_dismissal | enabled | disabled | not_set | The enablement status of secret scanning delegated alert dismissal |
secret_scanning_extended_metadata | enabled | disabled | not_set | The enablement status of secret scanning extended metadata |
private_vulnerability_reporting | enabled | disabled | not_set | The enablement status of private vulnerability reporting |
enforcement | enforced | unenforced | enterprise_enforced | The enforcement status for a security configuration |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "github_api__code_security_update_enterprise_configuration",
"arguments": {
"enterprise": "…",
"configuration_id": 0
}
}Or connect the GitHub API server directly, which lists 1,221 tools including this one:
claude mcp add --transport http hj-github-api https://mcp.hjlabs.in/mcp/github-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the update a custom code security configuration for an enterprise tool with enterprise set to ….