CodeQL toolsΒΆ
GitHub provides the CodeQL command-line interface and CodeQL for Visual Studio Code for performing CodeQL analysis on open source codebases. For information on the use cases for each tool, see βRunning CodeQL queries.β
CodeQL command-line interfaceΒΆ
The CodeQL command-line interface (CLI) is primarily used to create databases for security research. You can also query CodeQL databases directly from the command line or using the Visual Studio Code extension. The CodeQL CLI can be downloaded from βGitHub releases.β For more information, see βCodeQL CLIβ and the βChange log.β
CodeQL packsΒΆ
The standard CodeQL query and library packs (source) maintained by GitHub are:
For more information, see βAbout CodeQL packs.β
CodeQL bundleΒΆ
The CodeQL bundle consists of the CodeQL CLI together with the standard CodeQL query and library packs maintained by GitHub. The bundle is used by the CodeQL action in GitHub to generate code scanning results. If you use an external CI system, you can download the bundle from GitHub releases, generate code scanning results, and upload them to GitHub.
CodeQL for Visual Studio CodeΒΆ
You can analyze CodeQL databases in Visual Studio Code using the CodeQL extension, which provides an enhanced environment for writing and running custom queries and viewing the results. For more information, see βCodeQL for Visual Studio Code.β