| title | Enabling Copilot secret scanning's generic secret detection | |||
|---|---|---|---|---|
| shortTitle | Enable generic secret detection | |||
| intro | You can enable {% data variables.secret-scanning.generic-secret-detection %} for your repository or organization. Alerts for generic secrets, such as passwords, are displayed in a separate list on the {% data variables.product.prodname_secret_scanning %} alerts page. | |||
| allowTitleToDifferFromFilename | true | |||
| permissions | {% data reusables.permissions.security-repo-enable %} | |||
| versions |
|
|||
| contentType | how-tos | |||
| redirect_from |
|
|||
| category |
|
{% data reusables.secret-scanning.generic-secret-detection-policy-note %}
You can enable {% data variables.secret-scanning.generic-secret-detection %} in the security settings page of your repository or organization.
{% data reusables.secret-scanning.copilot-secret-scanning-generic-secrets-subscription-note %}
{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} {% data reusables.repositories.navigate-to-code-security-and-analysis %}
- Under "{% data variables.product.prodname_secret_protection %}", to the right of "Scan for generic passwords", click Enable.
You must configure {% data variables.secret-scanning.generic-secret-detection %} for your organization using a {% data variables.product.prodname_custom_security_configuration %}. You can then apply the {% data variables.product.prodname_security_configuration %} to all (or selected) repositories in your organization.
- Create a new {% data variables.product.prodname_custom_security_configuration %}, or edit an existing one. See AUTOTITLE.
- When creating the custom security configuration, ensure that "{% data variables.product.prodname_secret_protection %}" is set to Enabled, and that the dropdown menu for "Scan for generic secrets" is also set to Enabled.
- Apply the {% data variables.product.prodname_custom_security_configuration %} to one or more repositories. For more information, see Applying a {% data variables.product.prodname_custom_security_configuration %}.
For information on how to view alerts for generic secrets that have been detected using AI, see AUTOTITLE.