Review your security vulnerabilities in GitHub with code scanning alerts


![](https://images.prismic.io/sonarsource/590f6a1e-6a5c-40a1-8489-f02aeb389cc8_GitHub+Code+Scanning+Alert%402x.png?auto=compress,format) Today, for GitHub repositories, our SAST analysis provides fast, precise security feedback directly inside your pull requests. You instantly know how many vulnerabilities are detected and, until now, you would systematically go to SonarCloud to start investigating. Not anymore. From this point forward, developers can review the list of vulnerabilities from GitHub’s interface, thanks to code scanning. We’re happy to announce that _**SonarCloud integrates with GitHub code scanning**_! It’s available to everyone with a GitHub repository - private or public - independently of your SonarCloud plan. If you have access to the feature on GitHub and your organization admin already accepted the update for the SonarCloud app permissions, you’re all set! You should be able to start using the feature during your next code review. ## **Introduction to GitHub code scanning** As [GitHub describes it](<https://github.blog/2020-09-30-code-scanning-is-now-available/>), code scanning is a developer-first, GitHub-native approach to easily find security vulnerabilities before they reach production. ![SonarCloud integration with GitHub code scanning ](https://images.prismic.io/sonarsource/3efd5cf1-a3c4-4d8e-b8c5-d7a4bb2f287b_GitHub_CodeScanning.gif?auto=compress,format) GitHub code scanning helps you review and prioritize vulnerabilities during your code review process, in your development workflow. You don’t systematically have to switch context for your reviews anymore. How convenient! Code scanning is free for public projects or available as a paid option for your private repos with GitHub's [Advanced Security package](<https://docs.github.com/en/get-started/learning-about-github/about-github-advanced-security>). The feature is also available in [GitHub Enterprise](<https://github.com/enterprise>). To access the code scanning alerts, you have two options: 1. At the repository level, click on the ‘_**Security**_’ tab, and ‘View alerts’. 2. In your pull request, click on the ‘_**Checks**_’ tab, ‘Code scanning results’, and ‘SonarCloud’ ## **3 reasons to start using code scanning with SonarCloud** ### **1\. Easy code security review & prioritization** With code scanning alerts, we’re making your code security review easier. From now on, in the event of a failed quality gate for instance, you can easily review the full list of vulnerabilities in the pull request, and start prioritizing your work in GitHub. ### **2\. Fast security vulnerability investigation** Code scanning, together with SonarCloud analysis, provides everything you need to investigate a vulnerability. Directly in GitHub, you can learn why you have an issue, where it’s located and how it flows in your code. To help you with that, you’ll find the full [rule](<https://rules.sonarsource.com/>) description along with a relevant example of a compliant implementation. ![](https://images.prismic.io/sonarsource/3ad085be-4287-47cb-98f7-9b38375053fb_GitHub+code+scanning+vulnerability+review.png?auto=compress,format) ### **3\. Instant issue status synchronization** More than just a security review, code scanning will also allow you to dismiss vulnerabilities that you think are False Positives, or something you Won’t Fix. Two clicks are all it takes. When you do, SonarCloud will automatically be synchronized and your PR decoration refreshed instantly. In the same way, if you update a vulnerability status in SonarCloud, code scanning will be updated to reflect the latest changes. So whatever status update, the two environments will always be aligned. ## **Better security oversight ** Give it a try during your next code review, and share your experience in our [community forum](<http://community.sonarsource.com>). With GitHub code scanning and SonarCloud static analysis, you have all you need to catch security vulnerabilities before they make their way to production! For more information, please check our [documentation](<https://docs.sonarcloud.io/appendices/github-code-scanning-alerts>) for GitHub code scanning alerts.