You can control data use for your private repository with the security and analysis features.
- Enable the dependency graph to allow read-only data analysis on your repository.
- Disable the dependency graph to block read-only data analysis of your repository.
When you enable data use for your private repository, you'll be able to access the dependency graph, where you can track your repository's dependencies and receive Dependabot alerts when GitHub detects vulnerable dependencies. For more information, see "About Dependabot alerts."
Note: If you disable the dependency graph, Dependabot alerts and Dependabot security updates are also disabled. For more information, see "About the dependency graph."
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."
On GitHub.com, navigate to the main page of the repository.
Under your repository name, click Settings.
In the "Security" section of the sidebar, click Code security and analysis.
Under "Code security and analysis", to the right of the feature, click Disable or Enable.