For more granular control over your code scanning configuration, you can secure your code with advanced setup for code scanning.
Who can use this feature?
Code scanning is available for all public repositories on GitHub.com. To use code scanning in a private repository owned by an organization, you must have a license for GitHub Advanced Security. For more information, see "About GitHub Advanced Security."