CodeQL 2.6.2 (2021-09-21)¶
This is an overview of changes in the CodeQL CLI and relevant CodeQL query and library packs. For additional updates on changes to the CodeQL code scanning experience, check out the code scanning section on the GitHub blog, relevant GitHub Changelog updates, changes in the CodeQL extension for Visual Studio Code, and the CodeQL Action changelog.
Security Coverage¶
CodeQL 2.6.2 runs a total of 274 security queries when configured with the Default suite (covering 120 CWE). The Extended suite enables an additional 81 queries (covering 28 more CWE). 1 security query has been added with this release.
CodeQL CLI¶
Bug Fixes¶
- A bug where
codeql generate log-summary
would sometimes crash with aJsonMappingException
has been fixed.
Documentation¶
- Documentation has been added detailing how to use the “indirect build tracing” feature, which is enabled by using the
--begin-tracing
flag provided bycodeql database init
. The new documentation can be found here. This feature was temporarily described as “sandwiched tracing” in the 2.6.0 release notes.
New Features¶
- The CodeQL CLI now counts the lines of code found under
--source-root
whencodeql database init
orcodeql database create
is called. This information can be viewed later by either the newcodeql database print-baseline
command or the new--print-baseline-loc
argument tocodeql database interpret-results
. qlpack.yml
files now support an additional fieldinclude
in which glob patterns of additional files that should be included (or excluded) when creating a given CodeQL pack can be specified.- QL packs created by the experimental
codeql pack create
command will now include some information about the build in a newbuildMetadata
field of theirqlpack.yml
file. codeql database create
now supports the same flags ascodeql database init
for automatically recognizing the languages present in checkouts of GitHub repositories:--github-url
accepts the URL of a custom GitHub instance (previously onlygithub.com
was supported).--github-auth-stdin
allows a personal access token to be provided through standard input (previously only theGITHUB_TOKEN
environment variable was supported).