CodeQL Expands Support for Kotlin and Improves Static Analysis Accuracy
Allison reports on recent updates to CodeQL, featuring expanded Kotlin support, enhanced Rust analysis, and improved query accuracy for JavaScript and React, ensuring better static analysis and security scanning for GitHub projects.
CodeQL Expands Support for Kotlin and Improves Static Analysis Accuracy
CodeQL, the static analysis engine powering GitHub code scanning, has released versions 2.22.2 and 2.22.3, bringing notable enhancements for developers and security teams who use GitHub.
Language & Framework Support
- Kotlin: CodeQL now supports analyzing Kotlin version 2.2.2x, broadening the engine’s reach for developers using modern JVM languages.
- React: The analysis now tracks taint through the React
use
function and recognizes parameters of React server functions as taint sources, helping detect potential vulnerabilities in server-driven React codebases. - Rust: Rust support remains in public preview, with expanded detection coverage for more security issues and language features.
Query Changes
- JavaScript: Three previous queries for JavaScript have been retired, replaced by improved queries in the actions QL pack:
js/actions/pull-request-target
superseded byactions/untrusted-checkout
js/actions/actions-artifact-leak
superseded byactions/secrets-in-artifacts
js/actions/command-injection
superseded by an updatedactions/command-injection
Consult the CodeQL 2.22.2 and CodeQL 2.22.3 changelogs for more technical details.
Availability
- CodeQL updates are automatically deployed to all users of GitHub code scanning.
- New features will be available in GitHub Enterprise Server (GHES) 3.19. Users of older GHES versions can manually upgrade their CodeQL installation.
Summary
These improvements in language and framework support, combined with more precise queries and expanded coverage, help teams identify and remediate security issues more effectively in CI/CD pipelines and production codebases.
This post appeared first on “The GitHub Blog”. Read the entire article here