Home / Servers / GitHub API / code_security_update_configuration

Update a code security configuration

An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.

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… [PATCH /orgs/{org}/code-security/configurations/{configuration_id}]

Name on the gateway: github_api__code_security_update_configuration · may change things.

Parameters

NameTypeDescription
org requiredstringThe organization name. The name is not case sensitive.
configuration_id requiredintegerThe unique identifier of the code security configuration.
namestringThe name of the code security configuration. Must be unique within the…
descriptionstringA description of the code security configuration
advanced_securityenabled | disabled | code_security | secret_protectionThe enablement status of GitHub Advanced Security features. enabled will…
code_securityenabled | disabled | not_setThe enablement status of GitHub Code Security features.
dependency_graphenabled | disabled | not_setThe enablement status of Dependency Graph
dependency_graph_autosubmit_actionenabled | disabled | not_setThe enablement status of Automatic dependency submission
dependency_graph_autosubmit_action_optionsobjectFeature options for Automatic dependency submission
dependabot_alertsenabled | disabled | not_setThe enablement status of Dependabot alerts
dependabot_reachabilityenabled | disabled | not_setThe enablement status of reachability analysis for Dependabot. Only available…
dependabot_security_updatesenabled | disabled | not_setThe enablement status of Dependabot security updates
dependabot_delegated_alert_dismissalenabled | disabled | not_setThe enablement status of Dependabot delegated alert dismissal. Requires…
code_scanning_default_setupenabled | disabled | not_setThe enablement status of code scanning default setup
code_scanning_default_setup_optionsobjectFeature options for code scanning default setup
code_scanning_optionsobjectSecurity Configuration feature options for code scanning
code_scanning_delegated_alert_dismissalenabled | disabled | not_setThe enablement status of code scanning delegated alert dismissal
secret_protectionenabled | disabled | not_setThe enablement status of GitHub Secret Protection features.
secret_scanningenabled | disabled | not_setThe enablement status of secret scanning
secret_scanning_push_protectionenabled | disabled | not_setThe enablement status of secret scanning push protection
secret_scanning_delegated_bypassenabled | disabled | not_setThe enablement status of secret scanning delegated bypass
secret_scanning_delegated_bypass_optionsobjectFeature options for secret scanning delegated bypass
secret_scanning_validity_checksenabled | disabled | not_setThe enablement status of secret scanning validity checks
secret_scanning_non_provider_patternsenabled | disabled | not_setThe enablement status of secret scanning non-provider patterns
secret_scanning_generic_secretsenabled | disabled | not_setThe enablement status of Copilot secret scanning
secret_scanning_generic_secrets_push_protectionenabled | disabled | not_setThe enablement status of generic secrets push protection
secret_scanning_delegated_alert_dismissalenabled | disabled | not_setThe enablement status of secret scanning delegated alert dismissal
secret_scanning_extended_metadataenabled | disabled | not_setThe enablement status of secret scanning extended metadata
private_vulnerability_reportingenabled | disabled | not_setThe enablement status of private vulnerability reporting
enforcementenforced | unenforcedThe 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:

call_tool arguments
{
  "name": "github_api__code_security_update_configuration",
  "arguments": {
    "org": "…",
    "configuration_id": 0
  }
}

Or connect the GitHub API server directly, which lists 1,221 tools including this one:

Run in your terminal
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 code security configuration tool with org set to ….

More from GitHub API