---
title: "Get code security and analysis features for an enterprise"
method: GET
path: "/enterprises/{enterprise}/code_security_and_analysis"
tags: ["enterprise-admin"]
---

# Get code security and analysis features for an enterprise

`GET /enterprises/{enterprise}/code_security_and_analysis`

Gets code security and analysis settings for the specified 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 `admin:enterprise` scope to use this endpoint.

## Path parameters

- `enterprise` string, required

## Response `200`

Response

- EnterpriseSecurityAnalysisSettings
  - `dependabot_alerts_enabled_for_new_repositories` boolean — Whether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this enterprise.

## Other responses

- `404` — Resource not found

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-7.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-7/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-7/revisions/5438365412fe/schema)
