Note: Secret scanning for private repositories is currently in beta and subject to change. To request access to the beta, join the waitlist.
About management of secret scanning
Secret scanning can help you mitigate the impact of leaked secrets in your organization's repositories. For more information, see "About secret scanning."
You can manage how GitHub scans for secrets in existing repositories in your organization. You can also enable or disable secret scanning by default for any new repositories that members create in your organization.
If you enable security and analysis features, GitHub performs read-only analysis on your repository. For more information, see "About GitHub's use of your data."
Note: Secret scanning is enabled by default for public repositories in your organization and can't be disabled. For more information, see "About secret scanning for public repositories."
Enabling or disabling secret scanning for existing private repositories
- In the top right corner of GitHub, click your profile photo, then click Your profile.

- On the left side of your profile page, under "Organizations", click the icon for your organization.

- Under your organization name, click Settings.

- In the left sidebar, click Security & analysis.

- To the right of "Secret scanning", click Disable all or Enable all.

- Optionally, enable secret scanning by default for new private repositories in your organization.

- Click Disable secret scanning or Enable secret scanning to disable or enable the feature for all the repositories in your organization.

Enabling or disabling secret scanning for new private repositories
- In the top right corner of GitHub, click your profile photo, then click Your profile.

- On the left side of your profile page, under "Organizations", click the icon for your organization.

- Under your organization name, click Settings.

- In the left sidebar, click Security & analysis.

- To the right of "Secret scanning", enable or disable the feature by default for new private repositories in your organization.


