GitHub Introduces Code Scanning Autofix, Powered by Copilot and CodeQL

Ronik
By Ronik - Founder 2 Min Read

New feature helps developers remediate vulnerabilities faster and easier, reducing application security debt

  • Code scanning autofix is now available in public beta for GitHub Advanced Security customers
  • The feature covers over 90% of alert types in JavaScript, TypeScript, Java, and Python
  • Autofix delivers code suggestions that can remediate more than two-thirds of found vulnerabilities with minimal editing

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.

SOURCES:GitHub

About Weam

Weam helps digital agencies to adopt their favorite Large Language Models with a simple plug-an-play approach, so every team in your agency can leverage AI, save billable hours, and contribute to growth.

You can bring your favorite AI models like ChatGPT (OpenAI) in Weam using simple API keys. Now, every team in your organization can start using AI, and leaders can track adoption rates in minutes.

We are open to onboard early adopters for Weam. If you’re interested, opt in for our signup.

Ronik
By Ronik Founder
Ronik Patel is a dynamic entrepreneur and founder of Weam.AI, helping businesses effectively integrate AI into their workflows. With a Master's in Global Entrepreneurship from Babson and over a decade of experience scaling businesses, Ronik is focused on revolutionizing how organizations operate through Weam's multi-LLM AI platform. As a thought leader in AI and automation, Ronik understands human-centric digital transformation, and it's time we explore the innovative collaboration ability of AI plus Human to create more engaging and productive work environments while driving meaningful growth.
Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *