You can use code scanning to do that. Also, you can use that tools to find errors and vulnerable points in your Project. It is available for all public repositories on GitHub.com.