Skip to content

Commit 3bb6726

Browse files
authored
Merge pull request #22430 from github/codeql-spark-run-32971203150
Update changelog documentation site for codeql-cli-2.26.4
2 parents 92d8c25 + 9500a4e commit 3bb6726

2 files changed

Lines changed: 155 additions & 0 deletions

File tree

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
.. _codeql-cli-2.26.4:
2+
3+
==========================
4+
CodeQL 2.26.4 (2026-08-26)
5+
==========================
6+
7+
.. contents:: Contents
8+
:depth: 2
9+
:local:
10+
:backlinks: none
11+
12+
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 <https://github.blog/tag/code-scanning/>`__, `relevant GitHub Changelog updates <https://github.blog/changelog/label/application-security/>`__, `changes in the CodeQL extension for Visual Studio Code <https://marketplace.visualstudio.com/items/GitHub.vscode-codeql/changelog>`__, and the `CodeQL Action changelog <https://github.com/github/codeql-action/blob/main/CHANGELOG.md>`__.
13+
14+
Security Coverage
15+
-----------------
16+
17+
CodeQL 2.26.4 runs a total of 497 security queries when configured with the Default suite (covering 170 CWE). The Extended suite enables an additional 131 queries (covering 32 more CWE).
18+
19+
CodeQL CLI
20+
----------
21+
22+
Bug Fixes
23+
~~~~~~~~~
24+
25+
* The Java Autobuilder now expands project properties, such as
26+
:code:`${maven.version}`, when determining Maven version requirements specified by the Maven Enforcer Plugin. The Java Autobuilder now also supports Maven versions through 3.9.16.
27+
28+
New Features
29+
~~~~~~~~~~~~
30+
31+
* :code:`codeql test run` now supports the :code:`--reuse-dataset` option, which reuses an existing test database from a previous run when available,
32+
skipping database extraction. This can speed up repeated test runs when only the query under test has changed. The option implies
33+
:code:`--keep-databases`.
34+
35+
Query Packs
36+
-----------
37+
38+
Bug Fixes
39+
~~~~~~~~~
40+
41+
C#
42+
""
43+
44+
* The query :code:`cs/useless-cast-to-self` no longer reports casts when both the expression type and the cast target type are unknown, which can occur in :code:`build-mode: none` databases.
45+
46+
Minor Analysis Improvements
47+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
48+
49+
C#
50+
""
51+
52+
* The :code:`cs/simplifiable-boolean-expression` query no longer suggests replacing a negated comparison when the replacement could recursively call an enclosing user-defined operator in :code:`build-mode: none` databases.
53+
* The :code:`cs/web/missing-token-validation` query now recognizes enabled ASP.NET Core :code:`RequireAntiforgeryToken` attributes when antiforgery middleware is used.
54+
* The query :code:`cs/virtual-call-in-constructor` has been improved. Uses of virtual members in :code:`nameof` expressions are no longer reported, since they are not calls.
55+
* Static constructors are now used as the enclosing callable for static member initializer expressions. This improves the precision of a range of queries, including :code:`cs/useless-assignment-to-local` and :code:`cs/dereferenced-value-may-be-null`.
56+
57+
JavaScript/TypeScript
58+
"""""""""""""""""""""
59+
60+
* The :code:`js/superfluous-trailing-arguments` query no longer reports valid arguments passed to the :code:`TransformStream` constructor.
61+
62+
GitHub Actions
63+
""""""""""""""
64+
65+
* The :code:`actions/unpinned-tag` query now detects mutable references to reusable workflows.
66+
67+
Language Libraries
68+
------------------
69+
70+
Breaking Changes
71+
~~~~~~~~~~~~~~~~
72+
73+
GitHub Actions
74+
""""""""""""""
75+
76+
* Checks on actor fields read from the event payload (e.g. :code:`github.event.pull_request.user.login`) were split out of :code:`ActorIfCheck` into a new class :code:`EventActorIfCheck`. The :code:`ActorIfCheck` class now only covers :code:`github.actor` and :code:`github.triggering_actor`.
77+
78+
Major Analysis Improvements
79+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
80+
81+
C#
82+
""
83+
84+
* Simplified and streamlined the use of NuGet sources when downloading dependencies. In fallback scenarios and specialized package downloads, NuGet sources are now passed directly to :code:`dotnet restore` via the CLI. Furthermore, no :code:`nuget.config` files are created for fallback scenarios, and private registries are used when attempting to download missing packages that were not restored as part of the normal :code:`dotnet restore` process.
85+
86+
Golang
87+
""""""
88+
89+
* Go 1.27 is now supported.
90+
91+
Rust
92+
""""
93+
94+
* The alert locations for data flow queries have been improved. The new locations are more precise and are based on the actual source and sink nodes. Example:
95+
96+
.. code-block:: rust
97+
98+
let _ = conn.query(
99+
// ^^^^ old alert location
100+
unsafe_query.as_str(),
101+
// ^^^^^^^^^^^^^^^^^^^^^ new alert location
102+
)?;
103+
104+
This means that some alerts will have their locations changed, and hence appear as new alerts (while the old alerts will disappear).
105+
106+
Minor Analysis Improvements
107+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
108+
109+
Java/Kotlin
110+
"""""""""""
111+
112+
* Removed the summary model for :code:`String.valueOf(CharSequence)`, which does not exist. Instead, taint is now propagated through calls to :code:`String.valueOf(Object)` when the argument is a :code:`CharSequence`, for example a :code:`String` or a :code:`StringBuilder`.
113+
* Added SQL injection sink models for Spring R2DBC :code:`DatabaseClient` and the R2DBC SPI.
114+
115+
JavaScript/TypeScript
116+
"""""""""""""""""""""
117+
118+
* Added support for regular expressions using the :code:`d` flag.
119+
120+
Python
121+
""""""
122+
123+
* Added taint flow through :code:`list.extend` and :code:`list.insert`, matching the existing taint flow through :code:`list.append`.
124+
125+
Ruby
126+
""""
127+
128+
* The algorithm for tracking regexes has been replaced. This can cause result changes in related queries, for example, :code:`rb/polynomial-redos`.
129+
130+
GitHub Actions
131+
""""""""""""""
132+
133+
* Checks on actor fields read from the event payload (e.g. :code:`github.event.pull_request.user.login`) now only count as protection for events whose payload actually populates that field. Previously, a condition such as :code:`github.event.pull_request.user.login != 'name'` on a workflow triggered by :code:`issues` events was treated as a protective check even though :code:`github.event.pull_request` is not populated for :code:`issues` events, which makes the condition vacuous. This change may result in more alerts for queries using the :code:`ControlCheck` class.
134+
* Added an option to :code:`EnvironmentCheck` to become specified by a MaD model, otherwise it will continue as the default it previously was. Without adding models to :code:`actions/ql/lib/ext/config/deployment_environment.yml` the behavior of every query will be unchanged. When models are added queries using :code:`ControlCheck` may find more results in cases where an environment is no longer a sufficient sanitizer.
135+
136+
Rust
137+
""""
138+
139+
* Canonical paths for Rust trait items now use the format :code:`crate::Trait::item` instead of
140+
:code:`<_ as crate::Trait>::item`. Custom data extension models that reference trait items must be updated to use the new format.
141+
* The Rust extractor has been upgraded to use :code:`rust-analyzer` version 0.0.328. As a result, the AST exposed by the Rust libraries has changed: the :code:`TraitAlias` class has been removed, :code:`cfg` attributes are now modeled by the new :code:`CfgMeta`, :code:`CfgAtom`, :code:`CfgComposite`, :code:`CfgPredicate`, and :code:`CfgAttrMeta` classes, and the :code:`Meta` class has been refined into the :code:`KeyValueMeta`, :code:`PathMeta`, :code:`TokenTreeMeta`, and :code:`UnsafeMeta` subclasses. New :code:`TryBlockModifier` and :code:`FormatArgsArgName` classes have also been added.
142+
143+
New Features
144+
~~~~~~~~~~~~
145+
146+
C#
147+
""
148+
149+
* Added the :code:`AdditionalTaintStep` extension point (:code:`semmle.code.csharp.dataflow.FlowSteps`). Extend this class to add additional taint steps that apply to all taint-tracking configurations.
150+
151+
JavaScript/TypeScript
152+
"""""""""""""""""""""
153+
154+
* Added support for recognizing the React Native Worklets :code:`"worklet"` directive as a known directive.

docs/codeql/codeql-overview/codeql-changelog/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ A list of queries for each suite and language `is available here <https://docs.g
1111
.. toctree::
1212
:maxdepth: 1
1313

14+
codeql-cli-2.26.4
1415
codeql-cli-2.26.3
1516
codeql-cli-2.26.2
1617
codeql-cli-2.26.1

0 commit comments

Comments
 (0)