GitHub Introduces Code Scanning Autofix, Powered by Copilot and CodeQL

Ronik
By Ronik | 2 min read
Last updated: March 21, 2024
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.

code scanning autofix

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
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.

Elon Musk Questions OpenAI’s Finances After CEO Spotted in $1.9M Hypercar

July 14th, 2024: A recent video showing OpenAI CEO Sam Altman behind the wheel of a Koenigsegg Regera, a hypercar valued at over $1.9 million, has ignited a heated debate on social media. The foota...

Wonder how AI fits into your workflow? Let’s start by automating your first one.

Subscribe Now

Name(Required)
This field is for validation purposes and should be left unchanged.

Let’s collaborate!

Looking to adopt AI across your business confidently?

 Partner with Automators Lab to build an AI Command Centre for your tech‑driven business.