Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
343 commits
Select commit Hold shift + click to select a range
db449dc
unified: Fix handling of 'if case let'
asgerf Jun 24, 2026
1842382
unified: regenerate QL
asgerf Jun 24, 2026
3c5f70d
Ruby: And another missing tag.
geoffw0 Jun 29, 2026
8fc2f7c
Kotlin: Update .expected to exactly match reality.
geoffw0 Jun 29, 2026
727f7d2
Fix for pull request finding
geoffw0 Jun 29, 2026
2ef06c9
Merge pull request #22080 from asgerf/unified/commonast-followups
asgerf Jun 29, 2026
4237a76
Shared: Generate `final` tree-sitter classes
hvitved Jun 29, 2026
818a25b
Ruby: Regenerate `TreeSitter.qll`
hvitved Jun 29, 2026
330bb17
QL4QL: Regenerate `TreeSitter.qll`
hvitved Jun 29, 2026
d985c48
Unified: Regenerate `Ast.qll`
hvitved Jun 29, 2026
3058198
Merge pull request #22078 from geoffw0/rubyinline
geoffw0 Jun 29, 2026
96e88a1
Ruby: Inline AnyComment class into ExpectationComment.
geoffw0 Jun 29, 2026
72f1a0d
Ruby: Clean up the CodeQL a little more.
geoffw0 Jun 29, 2026
3983e4d
Merge pull request #22070 from github/tausbn/yeast-add-raw-capture-sy…
tausbn Jun 29, 2026
9a5cc3c
yeast: Make `Id` a newtype, delete `NodeRef`
tausbn Jun 26, 2026
cc3c232
yeast: Replace `{..expr}` splice syntax with trait-dispatched `{expr}`
tausbn Jun 26, 2026
e59f646
yeast: Remove dead Captures methods
tausbn Jun 26, 2026
b3dc700
yeast: Remove dead `BuildCtx::translate_opt`
tausbn Jun 26, 2026
b6abfe6
yeast: Remove dead `prepend_field` / `prepend_field_child`
tausbn Jun 26, 2026
807bb51
yeast: Unify `Node::kind()` and `Node::kind_name()`
tausbn Jun 26, 2026
37c8111
yeast-macros: Add error message to defensive `expect_ident` in `parse…
tausbn Jun 26, 2026
bda8e7d
yeast-macros: Remove unused `.map` and `.reduce_left` chain syntax
tausbn Jun 26, 2026
fb42402
yeast: Delete the `Cursor` trait, inline its methods on `AstCursor`
tausbn Jun 26, 2026
041a8e6
Fix source_text call in @@raw_lhs documentation example
Copilot Jun 29, 2026
f14a567
Potential fix for pull request finding
hvitved Jun 29, 2026
bfc37e5
Shared: Generalize `typeConstraintBaseTypeMatch`
hvitved Jun 25, 2026
f1cc1e5
Merge pull request #22084 from github/tausbn/yeast-miscellaneous-cleanup
tausbn Jun 29, 2026
3e1ca82
unified: Split corpus tests into source code and generated output
asgerf Jun 29, 2026
12bd3e2
unified: Bulk migrate all corpus tests to the new system
asgerf Jun 29, 2026
d519f79
Update ruby/ql/lib/utils/test/internal/InlineExpectationsTestImpl.qll
geoffw0 Jun 29, 2026
49bde56
C++: Add tests with qualified names in MaD.
MathiasVP Jun 29, 2026
2625c30
C++: Support fully qualified field names in MaD.
MathiasVP Jun 29, 2026
08c383d
C++: Accept test changes.
MathiasVP Jun 29, 2026
caaed72
C++: Hide summary nodes that should be hidden and accept test changes.
MathiasVP Jun 29, 2026
f353a17
Merge pull request #22081 from geoffw0/rubyinline2
geoffw0 Jun 29, 2026
28f0be5
Potential fix for pull request finding
asgerf Jun 30, 2026
0a737c9
Expand log.slog models and add more tests
owen-mc Jun 18, 2026
37d2224
Merge pull request #22082 from hvitved/shared/final-tree-sitter-classes
hvitved Jun 30, 2026
4a7afb7
Add data flow consistency test output
owen-mc Jun 18, 2026
3d8991a
Update change note
owen-mc Jun 18, 2026
8447b76
Merge pull request #22006 from owen-mc/go/more-slog-models
owen-mc Jun 30, 2026
be39051
Merge pull request #22086 from asgerf/asgerf-unified-corpus-test-split
asgerf Jun 30, 2026
c0871de
Merge pull request #22077 from geoffw0/javainline
geoffw0 Jun 30, 2026
cbcf85a
unified: Add standard query suites
asgerf Jun 26, 2026
8d564d3
unified: Add default_queries
asgerf Jun 26, 2026
81ed5c5
C++: Add change note.
MathiasVP Jun 30, 2026
fc954c3
C++: Remove support for marking variables as sources and sinks in MaD.
MathiasVP Jun 26, 2026
449a3ac
C++: Delete tests which are no longer relevant.
MathiasVP Jun 30, 2026
8657c8b
C++: Add change note.
MathiasVP Jun 30, 2026
0e05ea5
C++: Remove whitespace.
MathiasVP Jun 30, 2026
a43c5ce
unified: Add inline expectation test library
asgerf Jun 30, 2026
396bea6
Update cpp/ql/lib/semmle/code/cpp/dataflow/internal/FlowSummaryImpl.qll
MathiasVP Jun 30, 2026
06f54d1
C++: Add a TODO comment to remove support for unqualified field names.
MathiasVP Jun 30, 2026
a93501a
Merge pull request #22033 from michaelnebel/csharp/usefeedmanager
michaelnebel Jun 30, 2026
fc94d1c
unified: Add a dummy query
asgerf Jun 26, 2026
8a46f03
Merge pull request #22083 from asgerf/unified/suites
asgerf Jun 30, 2026
a9617f1
Potential fix for pull request finding
asgerf Jun 30, 2026
c045da0
Merge pull request #22088 from MathiasVP/cpp-support-fully-qualified-…
MathiasVP Jun 30, 2026
b7b731b
Merge branch 'main' into mad-write-through-model
MathiasVP Jun 30, 2026
ca4f751
Rust: Add more tests for constants.
geoffw0 Jun 29, 2026
43cfa2f
C#: Remove [[ style links from XSS sink explanation
d10c Jun 25, 2026
c81d31f
Rust: Flag const sources at the definition, not the use (clearer sour…
geoffw0 Jun 29, 2026
9e37ae0
Rust: Repair results for const accesses with no definition in the dat…
geoffw0 Jun 29, 2026
b5ec9c2
Update rust/ql/lib/codeql/rust/security/HardcodedCryptographicValueEx…
geoffw0 Jun 30, 2026
f37b3e7
Merge branch 'main' into remove-mad-support-for-variables
MathiasVP Jun 30, 2026
dbbcc17
C++: Delete now-unsupported MaD rows.
MathiasVP Jun 30, 2026
11e75c1
Merge pull request #22090 from asgerf/unified/inline-test-expectations
asgerf Jun 30, 2026
3cbb8ba
Add changed framework coverage reports
github-actions[bot] Jul 1, 2026
cf51664
Merge pull request #22099 from github/workflow/coverage/update
owen-mc Jul 1, 2026
3410f39
Merge pull request #22089 from MathiasVP/remove-mad-support-for-varia…
MathiasVP Jul 1, 2026
a5444b5
Python: Improve some flow summaries
hvitved Jul 1, 2026
daf97f7
Add Windows integration tests showing that subst is handled inconsist…
jketema Jun 29, 2026
2bf6031
Python: Update inline test expectations
hvitved Jul 1, 2026
4328031
Add MaDs for Apache POI
jacknojo Jul 1, 2026
d551ab3
Fix expected file
jketema Jul 1, 2026
e976608
Merge pull request #22079 from geoffw0/kotlininline
geoffw0 Jul 1, 2026
7263c00
Fix misnamed MaD models files
owen-mc Jul 1, 2026
d664d17
Merge pull request #22087 from jketema/subst
jketema Jul 1, 2026
cb4a1d0
Merge pull request #22103 from owen-mc/java/fix-mad-file-names
owen-mc Jul 1, 2026
73ec4b8
Ruby: Fix one last inline expectations testFailure.
geoffw0 Jul 1, 2026
226efb3
Potential fix for pull request finding
geoffw0 Jul 1, 2026
6c3c5ea
Merge pull request #22101 from hvitved/python/flow-summaries-improvem…
hvitved Jul 1, 2026
982f6a5
unified: Move Comments.ql into AstExtra.qll
asgerf Jul 1, 2026
970e991
unified: Add a few more AST helper classes
asgerf Jul 1, 2026
bced7bb
unified: Add local name binding and tests
asgerf Jul 1, 2026
36b31a8
unified: Add debug query for local scoping graph
asgerf Jul 1, 2026
d8b89d2
Add changed framework coverage reports
github-actions[bot] Jul 2, 2026
9aaf3f1
Merge pull request #22105 from geoffw0/rubyinline3
geoffw0 Jul 2, 2026
797f58b
Merge pull request #22052 from hvitved/rust/type-constraint-base-type…
hvitved Jul 2, 2026
1f4ae86
Apply suggestions from code review
geoffw0 Jul 2, 2026
4f4cdf4
Merge pull request #22061 from MathiasVP/mad-write-through-model
MathiasVP Jul 2, 2026
5e50fc8
Post-release preparation for codeql-cli-2.26.0
invalid-email-address Jul 2, 2026
4aef485
Merge pull request #22106 from github/workflow/coverage/update
owen-mc Jul 2, 2026
0a02b16
Merge pull request #22095 from d10c/d10c/drop-bracket-style-links
d10c Jul 2, 2026
f4d8358
Merge pull request #22110 from github/post-release-prep/codeql-cli-2.…
mbg Jul 2, 2026
ab1bc85
Merge pull request #22053 from geoffw0/arith
geoffw0 Jul 2, 2026
05ce686
Type inference: Small join-order tweak
hvitved Jul 2, 2026
268e9ea
Add section on specifying java types
owen-mc Jul 2, 2026
c3a0b65
Merge pull request #22115 from owen-mc/java/update-mad-docs
owen-mc Jul 3, 2026
d0cd4ac
Shared: remove unused getLhs() predicate
asgerf Jul 2, 2026
a86c7ba
unified: Flatten GuardIfStmt into the enclosing block
asgerf Jul 2, 2026
6ea146f
unified: Fix broken block syntax
asgerf Jul 2, 2026
e7bff85
unified: More fixes in test cases
asgerf Jul 2, 2026
c8eb207
unified: Add tests with 'while let'
asgerf Jul 2, 2026
891e244
unified: Add WhileStmt as a Conditional
asgerf Jul 2, 2026
036ed04
unified: Support OrPattern bindings
asgerf Jul 3, 2026
c23c3d9
unified: Translate bare names in patterns correctly
asgerf Jul 3, 2026
077b531
Add failing TaintedPath test for @Pattern sanitizer
owen-mc Jul 3, 2026
76b4f4f
Fix @Pattern sanitizer for TaintedPath
owen-mc Jul 3, 2026
e5bd62d
Add change note
owen-mc Jul 3, 2026
bfb3ead
Apply suggestions from code review
asgerf Jul 3, 2026
5c2e5bf
Convert qlref tests to inline expectations
owen-mc Jul 5, 2026
de7723f
Add SPURIOUS and MISSING tags
owen-mc Jul 5, 2026
8f026b1
Allow inline expectation comments in more file formats
owen-mc Jul 6, 2026
0ca353d
Add Changenote
jacknojo Jul 1, 2026
a2c5d4c
C++: Convert qlref tests to inline expectations
owen-mc Jul 7, 2026
843ac7c
Add `SPURIOUS:` tags
owen-mc Jul 7, 2026
76d8ae8
Add `MISSING:` tag
owen-mc Jul 7, 2026
fa16728
Fix comments in one test
owen-mc Jul 7, 2026
a812e4a
Refactor creating barriers with annotations
owen-mc Jul 7, 2026
366d70b
Convert qlref tests to inline expectations
owen-mc Jul 4, 2026
f67b729
Update query example (synced file)
owen-mc Jul 6, 2026
117a0bb
Copilot fix for missing module pygments - regenerating the lockfile f…
geoffw0 Jul 7, 2026
9d95906
Address review comments
owen-mc Jul 7, 2026
19745e1
Fix some lines with `// $ ... // $ MISSING:`
owen-mc Jul 7, 2026
1db3132
Java: Model Spring reactive `WebClient.uri` as a request forgery sink
joshimar Jul 7, 2026
6ff2a4c
Apply suggestion from @owen-mc
joshimar Jul 7, 2026
b8f8370
Update java/ql/lib/change-notes/2026-06-30-spring-webclient-uri-ssrf.md
joshimar Jul 7, 2026
8363d2d
Merge pull request #22132 from joshimar/java/spring-webclient-uri-ssr…
owen-mc Jul 7, 2026
5ba1fe3
Accept updated .expected output
owen-mc Jul 7, 2026
b6d588c
Revert inline expectations for blazor integration tests with BMN
owen-mc Jul 7, 2026
bc966f6
Add changed framework coverage reports
github-actions[bot] Jul 8, 2026
6c7b9f7
Remove `main` entries
jacknojo Jul 8, 2026
662c7b0
Swift: Turn of caching and integrated driver in autobuild
jketema Jul 2, 2026
8ecdb2c
Swift: update integration tests to not use the integrated driver
jketema Jul 2, 2026
b4db71a
Swift: Update autobuild tests
jketema Jul 2, 2026
36af59a
Swift: Update integration test
jketema Jul 2, 2026
69ed2da
Merge pull request #22134 from github/workflow/coverage/update
owen-mc Jul 8, 2026
a16e19a
Merge pull request #22127 from owen-mc/cpp/convert-qlref-inline-expec…
owen-mc Jul 8, 2026
134e302
Merge pull request #22119 from owen-mc/java/fix-tainted-path-pattern-…
owen-mc Jul 8, 2026
85d800f
Apply suggestions from code review
owen-mc Jul 8, 2026
3c3f740
Merge pull request #22120 from asgerf/unified/local-scoping
tausbn Jul 8, 2026
8272848
yeast: Implement IntoIterator for Id as a singleton
tausbn Jul 4, 2026
13510b1
yeast: Add BuildCtx::scoped for isolated context modification
tausbn Jul 4, 2026
9b7a9c3
yeast: Use clone-and-drop for per-rule context isolation
tausbn Jul 6, 2026
7b96f66
Also run cs/constant-condition on test for cs/comparison-of-identical…
owen-mc Jul 8, 2026
aba008d
Remove comments "// BAD: but flagged by cs/constant-condition"
owen-mc Jul 8, 2026
15c7428
Address review comment
hvitved Jul 8, 2026
8bb12d1
Merge pull request #22005 from github/dependabot/pip/misc/codegen/pip…
geoffw0 Jul 8, 2026
25cd352
Merge pull request #22123 from owen-mc/csharp/convert-qlref-tests-to-…
owen-mc Jul 8, 2026
33da3ef
yeast: Fix typo
tausbn Jul 8, 2026
47ea9b4
update codeql documentation
invalid-email-address Jul 8, 2026
11be079
Merge pull request #22139 from github/codeql-spark-run-28955698948
coadaflorin Jul 8, 2026
f4773e9
Merge pull request #22114 from hvitved/type-inference-join
hvitved Jul 8, 2026
6da42a2
Bump golang.org/x/mod
dependabot[bot] Jul 9, 2026
a238aee
Merge pull request #22141 from github/dependabot/go_modules/go/extrac…
owen-mc Jul 9, 2026
d5712ef
Merge pull request #22130 from github/jacknojo/apache_poi_mads
jacknojo Jul 9, 2026
1fb4f9d
yeast: Move schema and YAML loader into yeast-schema crate
tausbn Jun 19, 2026
ea36f2d
yeast: add `rules!` macro
tausbn Jun 19, 2026
ee04938
yeast: Require type annotations on root-level Rust interpolations
tausbn Jul 2, 2026
11afcce
yeast: Fix bug in matching `(_)`
tausbn Jul 2, 2026
d609680
yeast: Fix escaping bug in yeast-macros
tausbn Jul 2, 2026
36d0ceb
update codeql documentation
invalid-email-address Jul 9, 2026
989154a
Merge pull request #22136 from github/tausbn/yeast-translate-with-con…
tausbn Jul 9, 2026
9e99a3c
Merge branch 'main' into tausbn/yeast-reify-output-schema-as-ast-types
tausbn Jul 9, 2026
747aa45
Merge pull request #22147 from github/codeql-spark-run-29025431896
coadaflorin Jul 9, 2026
2ae79d0
C#: Remove misplaced change note
jketema Jul 9, 2026
66fea69
C#: Add CWE-73 tag to `cs/assembly-path-injection`
jketema Jul 9, 2026
72efb6a
C++: Add CWE 73 and CWE 78 tags to `cpp/uncontrolled-process-operation`
jketema Jul 9, 2026
233c3ce
Fix incorrect sanitizers
owen-mc Jul 9, 2026
161c8c4
Merge pull request #22149 from jketema/jketema/cwe-114-tag
jketema Jul 9, 2026
9acbbb8
Release preparation for version 2.26.1
invalid-email-address Jul 9, 2026
373814b
Merge pull request #22151 from github/release-prep/2.26.1
oscarsj Jul 9, 2026
ec83894
Post-release preparation for codeql-cli-2.26.1
invalid-email-address Jul 9, 2026
6430802
Add UntrustedCheckoutTOCTOUX ControlCheck model fix
knewbury01 Jul 9, 2026
8ff671f
Add changed framework coverage reports
github-actions[bot] Jul 10, 2026
985a79a
Bump golang.org/x/tools
dependabot[bot] Jul 10, 2026
059aa2d
Add missing changenote
knewbury01 Jul 10, 2026
247e54b
Merge pull request #22112 from github/tausbn/yeast-reify-output-schem…
tausbn Jul 10, 2026
89e11e5
unified: Add `swift-syntax-rs`
tausbn Jul 6, 2026
87c8173
unified: Don't emit empty trivia
tausbn Jul 7, 2026
446ff7c
unified: Add mapping from swift-syntax JSON to yeast AST
tausbn Jul 7, 2026
8909fae
unified: Extract locations from `swift-syntax` AST
tausbn Jul 7, 2026
ddab6cc
unified: Emit locations for comments
tausbn Jul 7, 2026
58ddeac
unified: Hook up swift-syntax AST
tausbn Jul 7, 2026
33261f4
Java: Improve join order.
aschackmull Jul 10, 2026
2cd9220
Format
knewbury01 Jul 10, 2026
9fc65df
Merge pull request #22150 from owen-mc/go/remove-incorrect-sanitizer
owen-mc Jul 10, 2026
dee6386
Merge pull request #22126 from owen-mc/js/convert-qlref-inline-expect…
owen-mc Jul 10, 2026
22fca39
Merge pull request #22156 from github/workflow/coverage/update
owen-mc Jul 11, 2026
6057b4b
Fix path sanitizer
owen-mc Jul 11, 2026
a142121
Merge pull request #22157 from github/dependabot/go_modules/go/extrac…
owen-mc Jul 11, 2026
63ff22a
Go: Remove dead `ObjectsOverride`
jketema Jul 12, 2026
559f9f3
Go: Remove dead `isAlias`
jketema Jul 12, 2026
0584ca0
Go: Update to 1.26.5
github-actions[bot] Jul 13, 2026
6017cbc
Merge pull request #22176 from jketema/jketema/go-dead
jketema Jul 13, 2026
032636c
Go: Track whether a type parameter was defined as part of a receiver
jketema Jul 12, 2026
37454ab
Go: Add upgrade and downgrade scripts
jketema Jul 13, 2026
e17508c
Go: Expose new TypeParamType column and use in test
jketema Jul 13, 2026
9c1f5c9
Go: Fix dowgrade script formatting
jketema Jul 13, 2026
9efcc49
C++: Update the CWE tag of `cpp/new-free-mismatch`
jketema Jul 13, 2026
fe0d1af
Merge pull request #22177 from github/workflow/go-version-update
jketema Jul 13, 2026
e0f0987
Go: Make `isFromReceiver` and actual `predicate`
jketema Jul 13, 2026
5caa29a
Merge branch 'main' into dependabot/bazel/nlohmann_json-3.12.0.bcr.1
jketema Jul 13, 2026
b3c16b4
Merge pull request #21516 from github/dependabot/bazel/nlohmann_json-…
jketema Jul 13, 2026
a8885ae
C#: Remove the HttpRequest.RawUrl barrier model.
michaelnebel Jul 13, 2026
03e44f5
C#: Update test and expected output.
michaelnebel Jul 13, 2026
ae06b77
C#: Add change-note.
michaelnebel Jul 13, 2026
2656b5d
Merge pull request #22179 from jketema/jketema.new-free
jketema Jul 13, 2026
42843f1
Merge pull request #22159 from aschackmull/java/join-order-effnonvirt
michaelnebel Jul 13, 2026
2d00958
Address review comment
owen-mc Jul 13, 2026
09da46d
Go: Address review comments
jketema Jul 14, 2026
8b47705
Merge pull request #22178 from jketema/jketema/go-recv
jketema Jul 14, 2026
05734dc
Merge pull request #22175 from owen-mc/java/fix-path-sanitizer
owen-mc Jul 14, 2026
3e2daf2
Support building swift-syntax-rs on macOS
Copilot Jul 13, 2026
b15c243
C#: Exclude cs/useless-assignment-to-local from the code-quality suite.
michaelnebel Jul 15, 2026
2395053
C#: Update integration test expected output.
michaelnebel Jul 15, 2026
cb3f8a8
C#: Add change-note.
michaelnebel Jul 15, 2026
574ef4d
Kotlin: Support Kotlin 2.4.10
jketema Jul 15, 2026
2c161e6
Merge pull request #22180 from michaelnebel/csharp/rawurl
michaelnebel Jul 15, 2026
303f81e
Merge pull request #22194 from github/jketema/kotlin-2.4.10
jketema Jul 15, 2026
1577d82
Upgrade swift-syntax-rs to swift-syntax 603.0.2 / Swift 6.3.2
Copilot Jul 14, 2026
a701922
Swift: Update to Swift 6.3.3
jketema Jul 14, 2026
64df104
Merge pull request #22191 from jketema/jketema/swift-6.3.3
jketema Jul 15, 2026
3eb353e
swift-syntax-rs: Address PR review feedback
tausbn Jul 15, 2026
46d6a11
yeast: Clarify Ast::with_schema registration doc
tausbn Jul 15, 2026
205c9a9
swift-syntax-rs: Fix bazel formatting
tausbn Jul 15, 2026
7474a33
unified: Hardcode swift_version
tausbn Jul 15, 2026
da1bbb7
Bazel: regenerate vendored cargo dependencies
tausbn Jul 15, 2026
2eb0158
Merge pull request #22193 from michaelnebel/csharp/diableuselessassig…
michaelnebel Jul 16, 2026
e9e360a
update codeql documentation
invalid-email-address Jul 16, 2026
87835f7
Merge pull request #22207 from github/codeql-spark-run-29493713448
oscarsj Jul 17, 2026
a3eee62
Shared: Add missing QLdoc
jketema Jul 17, 2026
14450f5
Merge pull request #22211 from jketema/jketema/qldoc
jketema Jul 17, 2026
f384e29
unified: Clean up build
tausbn Jul 20, 2026
5690ec7
Merge pull request #22111 from jketema/jketema/swift-more-autobuild
jketema Jul 20, 2026
c5844ad
Merge branch 'main' into knewbury01/adjust-environmentcheck
knewbury01 Jul 20, 2026
0a1139c
Fix Bazel formatting
jketema Jul 21, 2026
bf57586
Simplify Xcode transition per review comments
jketema Jul 21, 2026
cf8eeb8
Only depend on the runtime libraries from the Swift toolchain
jketema Jul 21, 2026
38c9c84
Use 22.04 Swift toolchain
jketema Jul 21, 2026
9836c1d
Merge pull request #22152 from github/post-release-prep/codeql-cli-2.…
oscarsj Jul 23, 2026
a39eab3
Merge pull request #22195 from github/tausbn/swift-syntax-rs
tausbn Jul 23, 2026
d1fed84
Merge pull request #22154 from knewbury01/knewbury01/adjust-environme…
knewbury01 Jul 23, 2026
6632d2f
Release preparation for version 2.26.2
invalid-email-address Jul 23, 2026
9410163
Merge pull request #22229 from github/release-prep/2.26.2
oscarsj Jul 23, 2026
a38a4a5
manual 2.26.2 merge
Jul 29, 2026
6fe3cf6
PS: Fixup dataflow after the changes in github/codeql#22061.
MathiasVP Jul 30, 2026
793d1da
C#: Fix tests.
MathiasVP Jul 30, 2026
57b13e6
C#: Do not use deprecated predicate. This one is equivalent.
MathiasVP Jul 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 14 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ members = [
"shared/tree-sitter-extractor",
"shared/yeast",
"shared/yeast-macros",
"shared/yeast-schema",
"ruby/extractor",
"unified/extractor",
"unified/extractor/tree-sitter-swift",
"unified/swift-syntax-rs",
"rust/extractor",
"rust/extractor/macros",
"rust/ast-generator",
Expand Down
46 changes: 44 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,20 @@ bazel_dep(name = "rules_python", version = "1.9.0")
bazel_dep(name = "rules_shell", version = "0.7.1")
bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "abseil-cpp", version = "20260107.1", repo_name = "absl")
bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "json")
bazel_dep(name = "nlohmann_json", version = "3.12.0.bcr.1", repo_name = "json")
bazel_dep(name = "fmt", version = "12.1.0-codeql.1")
bazel_dep(name = "rules_kotlin", version = "2.2.2-codeql.1")
bazel_dep(name = "gazelle", version = "0.50.0")
bazel_dep(name = "rules_dotnet", version = "0.21.5-codeql.1")
bazel_dep(name = "googletest", version = "1.17.0.bcr.2")
bazel_dep(name = "rules_rust", version = "0.69.0")
bazel_dep(name = "rules_swift", version = "4.0.0-rc4")
bazel_dep(name = "swift-syntax", version = "603.0.2")

# Needed so we can `use_repo` `local_config_xcode` and
# `local_config_apple_cc_toolchains` below (referenced by the per-target
# Xcode-config transition in `unified/swift-syntax-rs/xcode_transition.bzl`).
bazel_dep(name = "apple_support", version = "2.6.1")
bazel_dep(name = "zstd", version = "1.5.7.bcr.1")

bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True)
Expand Down Expand Up @@ -219,6 +226,41 @@ use_repo(
"swift-resource-dir-macos",
)

# Swift toolchain for building `unified/swift-syntax-rs`. On Linux we register
# a hermetic swift.org toolchain as the exec toolchain; on macOS `rules_swift`
# auto-registers `xcode_swift_toolchain` (host Xcode + OS-provided Swift
# runtime), which is not hermetic.
#
# The version is pinned as a literal rather than read from
# `unified/swift-syntax-rs/.swift-version` via `swift_version_file`: the latter
# makes the extension `module_ctx.read` a `//unified/...` label, which fails to
# resolve when this repo is consumed as a dependency module (`@@ql+`) whose
# `unified/swift-syntax-rs` package is not loadable in that context. Keep this
# in sync with `unified/swift-syntax-rs/.swift-version` (used by the `cargo`
# build) and the `swift-syntax` release in `swift/Package.swift`.
swift = use_extension("@rules_swift//swift:extensions.bzl", "swift")
swift.toolchain(
name = "swift_toolchain",
swift_version = "6.3.2",
)
use_repo(
swift,
"swift_toolchain",
"swift_toolchain_ubuntu22.04",
)

register_toolchains(
"@swift_toolchain//:swift_toolchain_exec_ubuntu22.04",
)

# `apple_support`'s xcode_config and CC toolchains, needed by the Xcode
# transition in `unified/swift-syntax-rs/xcode_transition.bzl`.
xcode_configure = use_extension("@apple_support//xcode:xcode_configure.bzl", "xcode_configure_extension")
use_repo(xcode_configure, "local_config_xcode")

apple_cc_configure = use_extension("@apple_support//crosstool:setup.bzl", "apple_cc_configure_extension")
use_repo(apple_cc_configure, "local_config_apple_cc_toolchains")

node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
node.toolchain(
name = "nodejs",
Expand Down Expand Up @@ -276,7 +318,7 @@ use_repo(
)

go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(version = "1.26.4")
go_sdk.download(version = "1.26.5")

go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//go/extractor:go.mod")
Expand Down
10 changes: 10 additions & 0 deletions actions/ql/lib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 0.4.40

### Minor Analysis Improvements

* Altered the logic of `EnvironmentCheck` to make sure it is a check that protects only for non-toctou. This change will result in more results being found by the queries: `actions/untrusted-checkout-toctou/high` and `actions/untrusted-checkout-toctou/critical`.

## 0.4.39

No user-facing changes.

## 0.4.38

### Bug Fixes
Expand Down
3 changes: 3 additions & 0 deletions actions/ql/lib/change-notes/released/0.4.39.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 0.4.39

No user-facing changes.
5 changes: 5 additions & 0 deletions actions/ql/lib/change-notes/released/0.4.40.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## 0.4.40

### Minor Analysis Improvements

* Altered the logic of `EnvironmentCheck` to make sure it is a check that protects only for non-toctou. This change will result in more results being found by the queries: `actions/untrusted-checkout-toctou/high` and `actions/untrusted-checkout-toctou/critical`.
2 changes: 1 addition & 1 deletion actions/ql/lib/codeql-pack.release.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
lastReleaseVersion: 0.4.38
lastReleaseVersion: 0.4.40
5 changes: 2 additions & 3 deletions actions/ql/lib/codeql/actions/security/ControlChecks.qll
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,8 @@ class EnvironmentCheck extends ControlCheck instanceof Environment {
// Environment checks are not effective against any mutable attacks
// they do actually protect against untrusted code execution (sha)
override predicate protectsCategoryAndEvent(string category, string event) {
event = actor_is_attacker_event() and category = any_category()
or
event = actor_not_attacker_event() and category = non_toctou_category()
event = [actor_is_attacker_event(), actor_not_attacker_event()] and
category = non_toctou_category()
}
}

Expand Down
2 changes: 1 addition & 1 deletion actions/ql/lib/qlpack.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: codeql/actions-all
version: 0.4.38
version: 0.4.40
library: true
warnOnImplicitThis: true
dependencies:
Expand Down
8 changes: 8 additions & 0 deletions actions/ql/src/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 0.6.32

No user-facing changes.

## 0.6.31

No user-facing changes.

## 0.6.30

### Query Metadata Changes
Expand Down
3 changes: 3 additions & 0 deletions actions/ql/src/change-notes/released/0.6.31.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 0.6.31

No user-facing changes.
3 changes: 3 additions & 0 deletions actions/ql/src/change-notes/released/0.6.32.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 0.6.32

No user-facing changes.
2 changes: 1 addition & 1 deletion actions/ql/src/codeql-pack.release.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
lastReleaseVersion: 0.6.30
lastReleaseVersion: 0.6.32
2 changes: 1 addition & 1 deletion actions/ql/src/qlpack.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: codeql/actions-queries
version: 0.6.30
version: 0.6.32
library: false
warnOnImplicitThis: true
groups: [actions, queries]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ edges
#select
| .github/workflows/comment.yml:58:9:60:2 | Run Step | .github/workflows/comment.yml:54:9:58:6 | Uses Step | .github/workflows/comment.yml:58:9:60:2 | Run Step | Insufficient protection against execution of untrusted code on a privileged workflow ($@). | .github/workflows/comment.yml:4:3:4:15 | issue_comment | issue_comment |
| .github/workflows/comment.yml:68:9:68:43 | Run Step | .github/workflows/comment.yml:64:9:68:6 | Uses Step | .github/workflows/comment.yml:68:9:68:43 | Run Step | Insufficient protection against execution of untrusted code on a privileged workflow ($@). | .github/workflows/comment.yml:4:3:4:15 | issue_comment | issue_comment |
| .github/workflows/deployment1.yml:27:10:30:7 | Run Step | .github/workflows/deployment1.yml:16:10:22:7 | Uses Step | .github/workflows/deployment1.yml:27:10:30:7 | Run Step | Insufficient protection against execution of untrusted code on a privileged workflow ($@). | .github/workflows/deployment1.yml:5:3:5:21 | pull_request_target | pull_request_target |
| .github/workflows/deployment1.yml:30:10:31:53 | Run Step | .github/workflows/deployment1.yml:16:10:22:7 | Uses Step | .github/workflows/deployment1.yml:30:10:31:53 | Run Step | Insufficient protection against execution of untrusted code on a privileged workflow ($@). | .github/workflows/deployment1.yml:5:3:5:21 | pull_request_target | pull_request_target |
| .github/workflows/test0.yml:58:9:60:2 | Run Step | .github/workflows/test0.yml:54:9:58:6 | Uses Step | .github/workflows/test0.yml:58:9:60:2 | Run Step | Insufficient protection against execution of untrusted code on a privileged workflow ($@). | .github/workflows/test0.yml:4:3:4:15 | issue_comment | issue_comment |
| .github/workflows/test0.yml:68:9:68:43 | Run Step | .github/workflows/test0.yml:64:9:68:6 | Uses Step | .github/workflows/test0.yml:68:9:68:43 | Run Step | Insufficient protection against execution of untrusted code on a privileged workflow ($@). | .github/workflows/test0.yml:4:3:4:15 | issue_comment | issue_comment |
| .github/workflows/test4.yml:85:7:88:54 | Uses Step | .github/workflows/test4.yml:79:7:85:4 | Uses Step | .github/workflows/test4.yml:85:7:88:54 | Uses Step | Insufficient protection against execution of untrusted code on a privileged workflow ($@). | .github/workflows/test4.yml:5:3:5:15 | issue_comment | issue_comment |
Expand Down
14 changes: 14 additions & 0 deletions cpp/ql/lib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## 12.0.1

No user-facing changes.

## 12.0.0

### Breaking Changes

* Removed support for using variables as sources and sinks in models-as-data. Users of this feature should convert such sources and sinks to models defined using the QL language.

### Deprecated APIs

* Models-as-data flow summaries now use fully qualified field names (for example, `MyNamespace::MyStruct::myField`) instead of unqualified field names such as `myField`. We recommend updating existing flow summaries to use fully qualified field names. Unqualified field names are still supported, but that support will be removed in a future release.

## 11.0.0

### Breaking Changes
Expand Down
9 changes: 9 additions & 0 deletions cpp/ql/lib/change-notes/released/12.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## 12.0.0

### Breaking Changes

* Removed support for using variables as sources and sinks in models-as-data. Users of this feature should convert such sources and sinks to models defined using the QL language.

### Deprecated APIs

* Models-as-data flow summaries now use fully qualified field names (for example, `MyNamespace::MyStruct::myField`) instead of unqualified field names such as `myField`. We recommend updating existing flow summaries to use fully qualified field names. Unqualified field names are still supported, but that support will be removed in a future release.
3 changes: 3 additions & 0 deletions cpp/ql/lib/change-notes/released/12.0.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 12.0.1

No user-facing changes.
2 changes: 1 addition & 1 deletion cpp/ql/lib/codeql-pack.release.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
lastReleaseVersion: 11.0.0
lastReleaseVersion: 12.0.1
2 changes: 1 addition & 1 deletion cpp/ql/lib/qlpack.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: codeql/cpp-all
version: 11.0.0
version: 12.0.1
groups: cpp
dbscheme: semmlecode.cpp.dbscheme
extractor: cpp
Expand Down
25 changes: 0 additions & 25 deletions cpp/ql/lib/semmle/code/cpp/dataflow/ExternalFlow.qll
Original file line number Diff line number Diff line change
Expand Up @@ -931,31 +931,6 @@ private Element interpretElement0(
signature = "" and
elementSpec(namespace, type, subtypes, name, signature, _)
)
or
// Member variables
elementSpec(namespace, type, subtypes, name, signature, _) and
signature = "" and
exists(Class namedClass, Class classWithMember, MemberVariable member |
member.getName() = name and
member = classWithMember.getAMember() and
namedClass.hasQualifiedName(namespace, type) and
result = member
|
// field declared in the named type or a subtype of it (or an extension of any)
subtypes = true and
classWithMember = namedClass.getADerivedClass*()
or
// field declared directly in the named type (or an extension of it)
subtypes = false and
classWithMember = namedClass
)
or
// Global or namespace variables
elementSpec(namespace, type, subtypes, name, signature, _) and
signature = "" and
type = "" and
subtypes = false and
result = any(GlobalOrNamespaceVariable v | v.hasQualifiedName(namespace, name))
}

cached
Expand Down
Loading
Loading