GitHub Advanced Security is an add-on to GitHub Enterprise which allows you to use security features like code scanning, secret scanning, and dependency review on your private repositories. To help administrators configure these features, the repository and organization settings now include controls on the use of GitHub Advanced Security features on private repositories.
Public repositories are unaffected and can access GitHub Advanced Security features by default.
Learn more about enabling Advanced Security features on GitHub.com