22.9 C
New York

GitHub Introduces Code Scanning Autofix, Powered by Copilot and CodeQL

March 21st, 2024: GitHub has launched a new feature called code scanning autofix, which is now available in public beta for all GitHub Advanced Security customers.
The feature, powered by GitHub Copilot and CodeQL, aims to help developers fix vulnerabilities more quickly and easily, reducing the growing problem of “application security debt.”
Code scanning autofix supports more than 90% of alert types in popular programming languages such as JavaScript, TypeScript, Java, and Python.

When a vulnerability is discovered in one of these languages, the feature provides developers with a natural language explanation of the suggested fix, along with a preview of the code suggestion.
Developers can then accept, edit, or dismiss the suggestion. Remarkably, these code suggestions have been shown to remediate more than two-thirds of found vulnerabilities with little or no editing required.
Pierre Tempel and Eric Tooley, authors of the blog post announcing the feature, state that code scanning autofix is “the next leap forward” in GitHub’s vision for application security, where “found means fixed.”
Code Scanning Autofix
By prioritizing the developer experience, the company aims to help teams remediate vulnerabilities up to seven times faster than traditional security tools.
Behind the scenes, code scanning autofix leverages the CodeQL engine and a combination of heuristics and GitHub Copilot APIs to generate code suggestions.
These suggestions can include changes to multiple files and the dependencies that should be added to the project.
GitHub plans to continue adding support for more languages, with C# and Go coming next.

The company encourages users to join the autofix feedback and resources discussion to share their experiences and help guide further improvements to the feature.
The introduction of code scanning autofix is expected to benefit both development and security teams.
Developers will be able to reclaim time previously spent on remediation, while security teams can focus on protecting the business and keeping up with the accelerated pace of development, as the volume of everyday vulnerabilities is reduced.

Related articles

Recent articles