Setting up your repository securely
The first step to securing a repository is to set up who can see and modify your code. For more information, see "Managing repository settings."
Securing your repository
GitHub has a growing set of security features that help you keep your code secure. You can find these on the Security tab for your repository.
Available with Advanced Security
-
Code scanning alerts
Automatically detect security vulnerabilities and coding errors in new or modified code. Potential problems are highlighted, with detailed information, allowing you to fix the code before it's merged into your default branch. For more information, see "About code scanning."
-
Secret scanning alerts
View any secrets that GitHub has found in your code. You should treat tokens or credentials that have been checked into the repository as compromised. For more information, see "About secret scanning."