title | shortTitle | intro | product | versions | type | topics | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Enabling secret scanning for your repository |
Enable secret scanning |
You can configure how {% data variables.product.prodname_dotcom %} scans your repositories for leaked secrets and generates alerts. |
{% data reusables.gated-features.secret-scanning %} |
|
how_to |
|
{% ifversion fpt %}
{% data variables.secret-scanning.user_alerts_caps %} can be enabled on any free public repository that you own.
{% endif %}{% ifversion ghec or ghes %}
{% data variables.secret-scanning.user_alerts_caps %} can be enabled for any repository that is owned by an organization{% ifversion secret-scanning-user-owned-repos %}, and for repositories owned by user accounts when using {% data variables.product.prodname_ghe_cloud %} with {% data variables.product.prodname_emus %}{% endif %}.
{% endif %}
{% ifversion security-configurations %}
If you're an organization owner, you can enable {% data variables.product.prodname_secret_scanning %} for multiple repositories at a time using {% data variables.product.prodname_security_configurations %}. For more information, see "AUTOTITLE."
{% else %}
If you're an organization owner, you can enable {% data variables.product.prodname_secret_scanning %} for multiple repositories at a time. For more information, see "AUTOTITLE."
{% endif %}
{% ifversion secret-scanning-enterprise-level %}
If your organization is owned by an enterprise account, an enterprise owner can also enable {% data variables.product.prodname_secret_scanning %} at the enterprise level. For more information, see "AUTOTITLE."
{% endif %}
{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} {% data reusables.repositories.navigate-to-code-security-and-analysis %}{% ifversion ghec or ghes %}
-
If {% data variables.product.prodname_advanced_security %} is not already enabled for the repository, to the right of "{% data variables.product.prodname_GH_advanced_security %}", click Enable.
-
Review the impact of enabling {% data variables.product.prodname_advanced_security %}, then click Enable {% data variables.product.prodname_GH_advanced_security %} for this repository.
-
When you enable {% data variables.product.prodname_advanced_security %}, {% data variables.product.prodname_secret_scanning %} may automatically be enabled for the repository due to the organization's settings. If "{% data variables.product.prodname_secret_scanning_caps %}" is shown with an Enable button, you still need to enable {% data variables.product.prodname_secret_scanning %} by clicking Enable. If you see a Disable button, {% data variables.product.prodname_secret_scanning %} is already enabled.
-
Scroll down to the bottom of the page, and click Enable for {% data variables.product.prodname_secret_scanning %}. If you see a Disable button, it means that {% data variables.product.prodname_secret_scanning %} is already enabled for the repository.
A repository administrator can choose to disable {% data variables.product.prodname_secret_scanning %} for a repository at any time. For more information, see "AUTOTITLE."