Release

May 15, 20251 Minute Read

CodeQL support for Swift 6.1 in version 2.21.2

CodeQL is the static analysis engine behind GitHub code scanning, which identifies and remediates security issues in your code. We’ve recently released CodeQL 2.21.2, which now supports Swift 6.1.

With this release, projects built with Swift 6.1 can now be analyzed for security vulnerabilities.

The false positive rate for the query cs/web/missing-function-level-access-control has been reduced by improving the detection of authorization checks. Additionally, the true positive rate for the cs/invalid-string-formatting query has been increased by accounting for methods and additional overloads of existing format-like methods.

For a full list of changes, please refer to the complete changelog for version 2.21.2. Every new version of CodeQL is automatically deployed to users of GitHub code scanning on github.com. The new functionality in CodeQL 2.21.2 will also be included in GitHub Enterprise Server (GHES) 3.18 releases. If you’re using an older version of GHES, you can manually upgrade your CodeQL version.

Subscribe to our developer newsletter

Discover tips, technical guides, and best practices in our biweekly newsletter just for devs.

By submitting, I agree to let GitHub and its affiliates use my information for personalized communications, targeted advertising, and campaign effectiveness. See the GitHub Privacy Statement for more details.

CodeQL support for Swift 6.1 in version 2.21.2 - GitHub Changelog