Skip to content

Sync Main (autogenerated) #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 694 commits into from
Jun 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
694 commits
Select commit Hold shift + click to select a range
5b21188
C#: Sync.
aschackmull May 23, 2025
5c29461
Rust: update a comment
redsun82 May 23, 2025
0822ded
Merge pull request #19569 from MathiasVP/fix-return-value-surces-in-mad
MathiasVP May 23, 2025
b800040
C++: Add tests for various local Windows dataflow sources
jketema May 23, 2025
a77ddd7
C++: Add Windows command line and environment models
jketema May 22, 2025
fbc9615
C++: Update expected test results
jketema May 23, 2025
10f6e1c
C++: Add change note
jketema May 23, 2025
5b28ff1
Merge branch 'main' into aibaars/rust-extract-libs
aibaars May 23, 2025
16690cc
Merge pull request #19506 from github/aibaars/rust-extract-libs
hvitved May 24, 2025
e4d1b01
Rust: Add type inference test with function call to trait method
paldepind May 24, 2025
e778cbe
Rust: Resolve function calls to traits methods
paldepind May 24, 2025
bb9c72f
Swift: Update to Swift 6.1.1
jketema May 25, 2025
fcfe0a2
Merge pull request #19570 from hvitved/type-inference/simplify-type-p…
hvitved May 26, 2025
27fd7c4
Swift: Update macOS runner
jketema May 26, 2025
a519eab
Merge pull request #19571 from aschackmull/rangeanalysis/guards
aschackmull May 26, 2025
37024ad
JS: Move query suite selector logic to `javascript-security-and-quali…
Napalys May 26, 2025
add3c94
Merge branch 'main' into redsun82/rust-macro
May 26, 2025
ba77264
Rust: Also include prelude path resolution in Core
hvitved May 26, 2025
a749cf9
Rust: accept test changes
May 26, 2025
e964b17
Added `maintainability` and `error-handling` tags
Napalys May 26, 2025
0ce06e8
Rust: Use member predicate from path resolution
paldepind May 26, 2025
b4d2fb4
Swift: Fix type string representation
jketema May 26, 2025
f17076e
Swift: Update expected test results
jketema May 26, 2025
765afdb
Rust: add option to extract dependencies as source files
aibaars May 26, 2025
b99b25c
Merge pull request #19572 from github/redsun82/rust-macro
redsun82 May 27, 2025
c3af98b
Rust: skip unexpanded stuff in library emission
May 27, 2025
bf2cfab
Merge pull request #19575 from paldepind/rust/function-call-method
paldepind May 27, 2025
96cba8b
Rust: Add inconsistency check for type mentions without a root type
paldepind May 22, 2025
5278064
Rust: Only include relevant AST nodes in TypeMention
paldepind May 22, 2025
ba4950f
Rust: Accept test changes
paldepind May 22, 2025
1f6b3ad
Update javascript/ql/src/codeql-suites/javascript-security-and-qualit…
Napalys May 27, 2025
5214cc0
Excluded `ngrx`, `datorama`, `angular`, `react` and `langchain` from …
Napalys May 27, 2025
076e4a4
JS: Mark AngularJS $location as client-side remote flow source
asgerf May 27, 2025
1e64f50
Apply suggestions from code review
geoffw0 May 27, 2025
c971737
Merge pull request #19562 from geoffw0/operations3
geoffw0 May 27, 2025
0f2d2b7
Merge pull request #19582 from jketema/jketema/swift-type
jketema May 27, 2025
329d451
Swift: Add change note
jketema May 27, 2025
dc79580
Rust: re-enable attribute macro expansion in library mode
aibaars May 27, 2025
f4636b9
Swift: Update Swift resources
jketema May 27, 2025
99ab144
Merge pull request #19578 from Napalys/js/security_quality_suite
Napalys May 27, 2025
4c9c8bc
Merge pull request #19576 from jketema/swift-6.1.1
jketema May 27, 2025
b071a46
Merge pull request #19563 from jketema/jketema/win-flow
jketema May 27, 2025
5d8bb1b
C++: Add more Windows sources.
MathiasVP May 23, 2025
fd9adc4
C++: Add change note.
MathiasVP May 27, 2025
5228062
Rust: Add type inference inconsistency counts to the stats summary
paldepind May 23, 2025
e406f27
Update cpp/ql/lib/ext/Windows.model.yml
MathiasVP May 27, 2025
8022964
Update cpp/ql/lib/ext/Windows.model.yml
MathiasVP May 27, 2025
a05ddca
Update cpp/ql/lib/ext/Windows.model.yml
MathiasVP May 27, 2025
257d949
Merge branch 'main' into pin
geoffw0 May 27, 2025
ac724d2
Update rust/extractor/src/main.rs
aibaars May 27, 2025
84228e0
Add Pandas SQLi sinks
sylwia-budzynska May 27, 2025
254eabf
Merge pull request #19557 from paldepind/rust/type-mention-consistency
paldepind May 27, 2025
8595bd8
Merge pull request #19591 from MathiasVP/add-more-win32-flow-sources-2
MathiasVP May 27, 2025
6e9a4be
Rust: Add type inference test for overloaded operators
paldepind May 27, 2025
c1ee56e
C++: Add ReadFileEx tests with missing flow.
MathiasVP May 27, 2025
76c2d24
C++: Add summary for ReadFileEx and accept test changes.
MathiasVP May 27, 2025
55c70a4
Fix nitpicks
sylwia-budzynska May 27, 2025
8a1c323
Change naming to PascalCase
sylwia-budzynska May 27, 2025
ef1ddd0
Merge pull request #19520 from michaelnebel/csharp/missedreadonly
michaelnebel May 27, 2025
e666592
Fix formatting
sylwia-budzynska May 27, 2025
d92d454
Rust: Implement type inference for overloaded operators
paldepind May 27, 2025
d018c02
Merge pull request #19583 from github/aibaars/lib-as-source
aibaars May 27, 2025
a412ad2
Merge pull request #19529 from geoffw0/pin
geoffw0 May 27, 2025
c236084
Go: Explicitly check whether proxy env vars are empty
mbg May 27, 2025
e826b83
Merge pull request #19595 from MathiasVP/add-readfileex-flow-summary
MathiasVP May 27, 2025
8c39f61
Merge pull request #19598 from github/mbg/go/handle-empty-strings-in-…
mbg May 27, 2025
ae67948
C++: Fix formatting in model files
jketema May 27, 2025
ae26654
C++: Minor test clean up
jketema May 27, 2025
ece075c
Rust: add more macro expansion tests
May 27, 2025
5965532
Merge pull request #19599 from jketema/jketema/win
jketema May 27, 2025
5df50c0
Merge pull request #19470 from geoffw0/moresensitive
geoffw0 May 27, 2025
bfb91e9
Release preparation for version 2.21.4
invalid-email-address May 27, 2025
d72c766
Merge pull request #19601 from github/release-prep/2.21.4
henrymercer May 27, 2025
d2c6875
Post-release preparation for codeql-cli-2.21.4
invalid-email-address May 27, 2025
6b280ef
Merge pull request #19602 from github/post-release-prep/codeql-cli-2.…
henrymercer May 27, 2025
41f008d
Crypto: Adding initial openssl tests, fixing a bug in hash modeling f…
bdrodes May 22, 2025
78b9d8f
Merge pull request #19580 from hvitved/rust/path-resolution-prelude-i…
hvitved May 28, 2025
6f71e3b
Merge pull request #19491 from owen-mc/go/add-test-flags
owen-mc May 28, 2025
164cfaf
Merge pull request #19532 from owen-mc/go/make-test-version-independent
owen-mc May 28, 2025
d74e95f
Rust: Extend jump-to-def to include paths and `mod file;` imports
hvitved May 28, 2025
5160bc2
Rust: Define `getNumberOfOperands` in `Operation` class
paldepind May 28, 2025
0796184
C++: Specify GNU version on min/max test
jketema May 28, 2025
7ccae93
Merge pull request #19606 from jketema/gnu-version
jketema May 28, 2025
1928310
Rust: delete leftover log statement
aibaars May 28, 2025
6500ebf
Rust: Fixes based on PR review
paldepind May 28, 2025
a86dfe1
Rust: fix gzip compression
May 28, 2025
4a9e31e
Shared: add zstd crate to tree-sitter-extractor dependencies
May 28, 2025
923a285
Ruby, Rust: add `zstd` compression option
May 28, 2025
8248c50
Rust: add `none` compression integration test
May 28, 2025
fd00ed5
Ruby: add compression integration test
May 28, 2025
c8f5e26
Rust: fix compression option description
May 28, 2025
3fa308e
Rust: Also take the `std` prelude into account when resolving paths
hvitved May 28, 2025
5bb29b6
Now flags only `.pipe` calls which have an error somewhere down the s…
Napalys May 28, 2025
f8f5d8f
Exclude `.pipe` detection which are in a test file.
Napalys May 28, 2025
7d1a38f
Merge pull request #19600 from github/redsun82/rust-new-macro-expansi…
redsun82 May 28, 2025
80a5dde
Merge pull request #19613 from github/redsun82/rust-compression
redsun82 May 28, 2025
2e2b9a9
Make predicates private and clarify stream reference naming.
Napalys May 28, 2025
d3b2a57
Fixed ql warning `Expression can be replaced with a cast`
Napalys May 28, 2025
b1ce44e
Crypto: Move openssl stubs to a shared stubs location. Include openss…
bdrodes May 28, 2025
bfe3413
Merge pull request #19612 from github/aibaars-patch-2
aibaars May 28, 2025
89ad2b4
Merge branch 'main' into cklin/check-diff-informed
cklin May 28, 2025
62d0cf7
Rust: restrict line and file counts to include only extracted source …
aibaars May 28, 2025
b4e614a
Merge pull request #19428 from github/cklin/check-diff-informed
cklin May 28, 2025
55be5fb
Merge pull request #19588 from github/aibaars/rust-enable-attribute-m…
aibaars May 29, 2025
ca661c7
Rust: use all features by default
May 21, 2025
55791a6
Rust: fix typo
redsun82 May 27, 2025
437246f
Merge pull request #19593 from paldepind/rust/operator-overloading
paldepind May 29, 2025
5fe17ab
Added signature input nodes to signature verify operation nodes
fegge May 29, 2025
08277e4
Rust: Refactor type equality
paldepind May 29, 2025
f5ea929
Merge pull request #19551 from github/redsun82/rust-all-features-by-d…
aibaars May 29, 2025
cb0b566
C++: Put autogenerated models in the same folder structure as Rust.
MathiasVP May 29, 2025
40d937a
Bulk generator: Some imports we will need.
MathiasVP May 29, 2025
b87ba31
Bulk generator: Get rid of the hardcoded project list and move it int…
MathiasVP May 29, 2025
6ff2beb
Bulk generator: Add command-line arguments.
MathiasVP May 29, 2025
e721fc0
Bulk generator: Prepare for adding DCA support. This commits just gen…
MathiasVP May 29, 2025
5051790
Bulk generator: Add DCA support.
MathiasVP May 29, 2025
cb93870
Bulk generator: Rename file since it is no longer Rust specific.
MathiasVP May 29, 2025
460984b
Rust: add documentation for AST nodes
aibaars May 29, 2025
0dd0f9a
Rust: add missing AST nodes to annotations.py
aibaars May 29, 2025
f0db47b
Rust: run codegen
aibaars May 29, 2025
7ecf8c8
Bulk generator: Format file and add a note at the top of the file spe…
MathiasVP May 30, 2025
566bf43
Bulk generator: Rename 'github' to 'get_json_from_github'.
MathiasVP May 30, 2025
b640474
Bulk generator: Remove 'Phase' part of log message.
MathiasVP May 30, 2025
5d79a8d
Update misc/scripts/models-as-data/bulk_generate_mad.py
MathiasVP May 30, 2025
7c89d6d
Bulk generator: Rename 'get_destination_for_project' to 'get_mad_dest…
MathiasVP May 30, 2025
0157c16
Rust: delete empty expected file
aibaars May 30, 2025
7121f5c
Bulk generator: Use the 'Project' type throughout the file.
MathiasVP May 30, 2025
fc165db
Bulk generator: Specify 'with-summaries', 'with-sources', and 'with-s…
MathiasVP May 30, 2025
1228080
Bulk generator: Specify 'language' in the config file.
MathiasVP May 30, 2025
7c2612a
Bulk generator: Specify a path to the PAT instead of the PAT itself.
MathiasVP May 30, 2025
3ddca32
Update misc/scripts/models-as-data/bulk_generate_mad.py
MathiasVP May 30, 2025
cdd869a
Bulk generator: Autoformat.
MathiasVP May 30, 2025
bdf411a
Bulk generator: Make 'database_results' a map to simplify away the ex…
MathiasVP May 30, 2025
3444c98
Bulk generator: Fix field name.
MathiasVP May 30, 2025
0f30644
Bulk generator: Snake case things.
MathiasVP May 30, 2025
7cb9024
Bulk generator: Flip default values for summaries, sources, and sinks.
MathiasVP May 30, 2025
69e3a20
Crypto: Update crypto stubs location under 'crypto' and associate cod…
bdrodes May 30, 2025
f6231a3
Merge pull request #19627 from MathiasVP/generalize-bulk-generation
MathiasVP May 30, 2025
cf015d1
Crypto: Add openssl key agreement instances and consumers (KEM and KE…
bdrodes May 30, 2025
f843cc0
Fix false positives in stream pipe analysis by improving error handle…
Napalys May 30, 2025
19cc3e3
JS: Add test case for `RequestForgery` with url wrapped via package `…
Napalys May 26, 2025
b9b62fa
JS: Add `URL` from `url` package constructor taint step for request f…
Napalys May 30, 2025
0b6a747
Added change note
Napalys May 30, 2025
0c8e886
Rust: fix QLdoc examples
aibaars May 30, 2025
c44a7c3
Rust: codegen
aibaars May 30, 2025
943dd8e
update output
aibaars May 30, 2025
7be44d2
Merge branch 'main' into redsun82/rust-skip-unexpanded-in-libraries
Jun 2, 2025
fa3fcf0
Rust: skip all token trees in library mode
Jun 2, 2025
77a6a2d
Fix user-facing casing of NuGet
martincostello Jun 2, 2025
298ef9a
Now able to track error handler registration via instance properties
Napalys Jun 2, 2025
2561f3c
Merge pull request #19585 from github/redsun82/rust-skip-unexpanded-i…
redsun82 Jun 2, 2025
bf39058
Merge pull request #19611 from hvitved/rust/path-resolution-std-prelude
hvitved Jun 2, 2025
c981c4f
Update javascript/ql/lib/change-notes/2025-05-30-url-package-taint-st…
Napalys Jun 2, 2025
9fe031d
Merge pull request #19594 from sylwia-budzynska/pandas-sqli
tausbn Jun 2, 2025
21cb8b2
Merge pull request #19638 from martincostello/dotnet-branding
michaelnebel Jun 2, 2025
d0739b2
Restricted signature input nodes to verify nodes
fegge Jun 2, 2025
5c21c01
Update rust/ql/src/queries/summary/Stats.qll
aibaars Jun 2, 2025
0de6647
Crypto: Adding initial openssl tests, fixing a bug in hash modeling f…
bdrodes May 22, 2025
a9bdcc7
Crypto: Move openssl stubs to a shared stubs location. Include openss…
bdrodes May 28, 2025
6b26747
Crypto: Update crypto stubs location under 'crypto' and associate cod…
bdrodes May 30, 2025
a473c96
Crypto: Move crypto test stubs under experimental/stubs and remove sp…
bdrodes Jun 2, 2025
f5d24c5
Crypto: Fix UnknownKeyAgreementType to OthernKeyAgreementType for JCA.
bdrodes Jun 2, 2025
ae0c547
Rust: fix CFG for MacroPat
aibaars Jun 2, 2025
806fc6a
Merge pull request #19564 from bdrodes/initial_openssl_tests
nicolaswill Jun 2, 2025
5a82246
Merge branch 'main' into openssl_keyagreement_instances_and_consumers
nicolaswill Jun 2, 2025
b1afa66
CI: remove deprecated `windows-2019` usage
Jun 2, 2025
baac2ee
Ripunzip: update default workflow versions
Jun 2, 2025
aed9e9c
Merge pull request #19634 from Napalys/js/url_obj_propagation
Napalys Jun 2, 2025
3cbc414
Update javascript/ql/src/Quality/UnhandledStreamPipe.ql
Napalys Jun 2, 2025
64f00fd
Update javascript/ql/src/Quality/UnhandledStreamPipe.ql
Napalys Jun 2, 2025
abd446a
Update javascript/ql/src/Quality/UnhandledStreamPipe.ql
Napalys Jun 2, 2025
7198372
Update javascript/ql/src/Quality/UnhandledStreamPipe.qhelp
Napalys Jun 2, 2025
d43695c
Update javascript/ql/src/Quality/UnhandledStreamPipe.qhelp
Napalys Jun 2, 2025
ae74edb
Update javascript/ql/src/Quality/UnhandledStreamPipe.ql
Napalys Jun 2, 2025
ddbe29a
Ripunzip: update to 2.0.2
Jun 2, 2025
51ef76a
Merge pull request #19642 from github/redsun82/rm-windows-2019
redsun82 Jun 2, 2025
2e5ce06
Docs: Add changelog entry for CodeQL 2.21.4 release
coadaflorin Jun 2, 2025
8b9e5b4
Merge pull request #19623 from trailofbits/fegge/quantum-signatures
nicolaswill Jun 2, 2025
bd2573a
Ripunzip: fix macos archive
Jun 2, 2025
bf2f19d
Update UnhandledStreamPipe.ql
Napalys Jun 2, 2025
52aa7e3
Merge pull request #19624 from paldepind/type-inference-experiment
hvitved Jun 2, 2025
23b6c78
Crypto: Revert CODEOWNERS change and remove redundant cast.
bdrodes Jun 2, 2025
7993f7d
Update `qhelp` example to more accurately demonstrate flagged cases
Napalys Jun 2, 2025
8b770bf
Crypto: Remove old crypto stubs, now part of experimental/stubs.
bdrodes Jun 2, 2025
7e7dfeb
Merge branch 'main' into openssl_keyagreement_instances_and_consumers
nicolaswill Jun 2, 2025
7d7ea72
Merge pull request #19632 from bdrodes/openssl_keyagreement_instances…
nicolaswill Jun 2, 2025
4645586
Merge tag 'codeql-cli/latest' into auto/sync-main-pr
Jun 2, 2025
3781de7
Rust: Reorder columns in `Definitions.ql` test
hvitved Jun 3, 2025
ae4a425
Merge pull request #19605 from hvitved/rust/jump-to-def-extensions
hvitved Jun 3, 2025
348dc99
Rust: remove stray space
aibaars Jun 3, 2025
4de3817
Merge pull request #19616 from github/aibaars/rust-fix-stats
aibaars Jun 3, 2025
41bdaa3
C++: Fix typo in downgrade script
jketema Jun 3, 2025
5e84c71
Merge pull request #19652 from jketema/down-typo
jketema Jun 3, 2025
9ea4410
Merge pull request #19587 from asgerf/js/angular2-client-side
asgerf Jun 3, 2025
8ba1f3f
Update javascript/ql/src/Quality/UnhandledStreamPipe.qhelp
Napalys Jun 3, 2025
f6e7059
Merge branch 'main' into js/quality/stream_pipe
Napalys Jun 3, 2025
f48012a
Merge pull request #19644 from github/redsun82/update-ripunzip
redsun82 Jun 3, 2025
d186994
Renamed `UnhandledStreamPipe.ql` to a better fitting name and ID
Napalys Jun 3, 2025
8521c53
Renamed test directory to match the query name
Napalys Jun 3, 2025
35691db
Merge pull request #19643 from github/changedocs/2.21.4
coadaflorin Jun 3, 2025
e31f722
C++: Add support for getting referenced literals in using declarations
IdrissRio May 28, 2025
4fd44e9
C++: add test for `getReferencedMember`
IdrissRio Jun 2, 2025
10fb806
C++: add change note for using declarations
IdrissRio May 28, 2025
8fe2699
Merge pull request #19603 from github/idrissrio/comments-using
IdrissRio Jun 3, 2025
6d1b1d1
refactor EVP common classes
GrosQuildu May 23, 2025
af8702d
fix openssl outputs
GrosQuildu May 28, 2025
f103e8b
Update cpp/ql/lib/experimental/quantum/OpenSSL/Operations/OpenSSLOper…
GrosQuildu May 29, 2025
328cf79
Apply docs suggestions
GrosQuildu May 29, 2025
f04fa58
rm one-shot class
GrosQuildu May 29, 2025
eff6eb3
remove redundant if/none
GrosQuildu Jun 3, 2025
60d9b6e
update docs
GrosQuildu Jun 3, 2025
0ef17ba
Merge pull request #19607 from trailofbits/openssl-base-classes
nicolaswill Jun 3, 2025
58acb60
Merge branch 'main' of https://github.com/microsoft/codeql into auto/…
Jun 3, 2025
e7e4286
Merge pull request #19561 from owen-mc/go/mad/bigquery-sql-injection-…
owen-mc Jun 4, 2025
aa0fc05
Rust: Remove external locations in tests using post-processing
hvitved Jun 4, 2025
0e34ee1
C++: Update expected test results after frontend update
jketema Mar 4, 2025
129f259
C++: Update supported compiler versions after frontend update
jketema Mar 6, 2025
2e6794e
Merge pull request #18931 from jketema/frontend-upgrade
jketema Jun 4, 2025
5419285
Merge pull request #19544 from Napalys/js/quality/stream_pipe
Napalys Jun 4, 2025
7a13c98
Rust: address comments
aibaars Jun 4, 2025
e878782
Rust: run codegen
aibaars Jun 4, 2025
39851bc
Rust: update expected output
aibaars Jun 4, 2025
189c16b
Merge pull request #19630 from github/aibaars/qldoc-ast
aibaars Jun 4, 2025
149c53b
C++: accept new test results after changes
IdrissRio May 20, 2025
76c6d71
Merge pull request #19669 from hvitved/rust/external-location-post-pr…
hvitved Jun 4, 2025
401911e
Add changed framework coverage reports
github-actions[bot] Jun 5, 2025
338d383
Actions: Make `Env` non-abstract
smowton Jun 5, 2025
3f89dd3
Swift: Update to Swift 6.1.2
jketema Jun 5, 2025
5b5d855
Swift: Remove empty line from change note
jketema Jun 5, 2025
057d3eb
C++: Update stats file after changes to DCA source suite
jketema Jun 5, 2025
99ef4c7
Merge pull request #19533 from github/idrissrio/constexpr
jketema Jun 5, 2025
fbae306
Merge pull request #19675 from github/smowton/fix/abstract-env
smowton Jun 5, 2025
238a302
Merge pull request #19673 from github/workflow/coverage/update
owen-mc Jun 5, 2025
bbabf2c
Bump the extractor-dependencies group in /go/extractor with 2 updates
dependabot[bot] Jun 6, 2025
86f425d
C++: Fix join-order problem after stats file update
jketema Jun 6, 2025
5bfed77
Merge pull request #19683 from github/dependabot/go_modules/go/extrac…
owen-mc Jun 6, 2025
1f7a6ba
Swift: Update LFS
jketema Jun 6, 2025
ef5e605
Merge pull request #19386 from owen-mc/go/promote/html-template-escap…
owen-mc Jun 6, 2025
428b48d
Merge pull request #19679 from jketema/stats
jketema Jun 9, 2025
631502e
Merge branch 'main' into cklin/rc-3.18-mergeback
cklin Jun 9, 2025
68d2c13
Merge pull request #19699 from github/cklin/rc-3.18-mergeback
cklin Jun 9, 2025
ef210b8
Merge pull request #19678 from jketema/swift-6.1.2
jketema Jun 9, 2025
9f60335
CI: Expand list of packs/languages for change note validation
adityasharad Jun 9, 2025
98186e3
Merge pull request #19700 from adityasharad/actions/validate-change-n…
adityasharad Jun 9, 2025
88ba02e
Release preparation for version 2.22.0
invalid-email-address Jun 9, 2025
4d681f0
Merge pull request #19703 from github/release-prep/2.22.0
cklin Jun 9, 2025
9521d06
Merge branch 'main' of https://github.com/microsoft/codeql into auto/…
Jun 9, 2025
b8a78f7
Merge branch 'main' of https://github.com/microsoft/codeql into auto/…
Jun 10, 2025
7bfefef
Merge tag 'codeql-cli/latest' into auto/sync-main-pr
Jun 11, 2025
dae0582
Merge branch 'main' into auto/sync-main-pr
dilanbhalla Jun 12, 2025
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
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/workflows/build-ripunzip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ on:
ripunzip-version:
description: "what reference to checktout from google/runzip"
required: false
default: v1.2.1
default: v2.0.2
openssl-version:
description: "what reference to checkout from openssl/openssl for Linux"
required: false
default: openssl-3.3.0
default: openssl-3.5.0

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-13, windows-2019]
os: [ubuntu-22.04, macos-13, windows-2022]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/csharp-qltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
unit-tests:
strategy:
matrix:
os: [ubuntu-latest, windows-2019]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -66,6 +66,6 @@ jobs:
# Update existing stubs in the repo with the freshly generated ones
mv "$STUBS_PATH/output/stubs/_frameworks" ql/test/resources/stubs/
git status
codeql test run --threads=0 --search-path "${{ github.workspace }}" --check-databases --check-undefined-labels --check-repeated-labels --check-redefined-labels --consistency-queries ql/consistency-queries -- ql/test/library-tests/dataflow/flowsources/aspremote
codeql test run --threads=0 --search-path "${{ github.workspace }}" --check-databases --check-diff-informed --check-undefined-labels --check-repeated-labels --check-redefined-labels --consistency-queries ql/consistency-queries -- ql/test/library-tests/dataflow/flowsources/aspremote
env:
GITHUB_TOKEN: ${{ github.token }}
3 changes: 1 addition & 2 deletions .github/workflows/go-tests-other-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ jobs:
uses: ./go/actions/test

test-win:
if: github.repository_owner == 'github'
name: Test Windows
runs-on: windows-latest-xl
runs-on: windows-latest
steps:
- name: Check out code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ruby-qltest-rtjo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ jobs:
key: ruby-qltest
- name: Run QL tests
run: |
codeql test run --dynamic-join-order-mode=all --threads=0 --ram 50000 --search-path "${{ github.workspace }}" --check-databases --check-undefined-labels --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --consistency-queries ql/consistency-queries ql/test --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
codeql test run --dynamic-join-order-mode=all --threads=0 --ram 50000 --search-path "${{ github.workspace }}" --check-databases --check-diff-informed --check-undefined-labels --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --consistency-queries ql/consistency-queries ql/test --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
env:
GITHUB_TOKEN: ${{ github.token }}
2 changes: 1 addition & 1 deletion .github/workflows/ruby-qltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ jobs:
key: ruby-qltest
- name: Run QL tests
run: |
codeql test run --threads=0 --ram 50000 --search-path "${{ github.workspace }}" --check-databases --check-undefined-labels --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --consistency-queries ql/consistency-queries ql/test --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
codeql test run --threads=0 --ram 50000 --search-path "${{ github.workspace }}" --check-databases --check-diff-informed --check-undefined-labels --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --consistency-queries ql/consistency-queries ql/test --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
env:
GITHUB_TOKEN: ${{ github.token }}
2 changes: 1 addition & 1 deletion .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
if: github.repository_owner == 'github'
strategy:
matrix:
runner: [ubuntu-latest, macos-13-xlarge]
runner: [ubuntu-latest, macos-15-xlarge]
fail-fast: false
runs-on: ${{ matrix.runner }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-change-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
- name: Fail if there are any errors with existing change notes

run: |
codeql pack release --groups cpp,csharp,java,javascript,python,ruby,-examples,-test,-experimental
codeql pack release --groups actions,cpp,csharp,go,java,javascript,python,ruby,shared,swift -examples,-test,-experimental
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ node_modules/

# Temporary folders for working with generated models
.model-temp
/mad-generation-build

# bazel-built in-tree extractor packs
/*/extractor-pack
Expand All @@ -71,3 +72,7 @@ node_modules/

# cargo build directory
/target

# some upgrade/downgrade checks create these files
**/upgrades/*/*.dbscheme.stats
**/downgrades/*/*.dbscheme.stats
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/java/ql/test-kotlin2/ @github/codeql-kotlin

# Experimental CodeQL cryptography
**/experimental/quantum/ @github/ps-codeql
**/experimental/**/quantum/ @github/ps-codeql
/shared/quantum/ @github/ps-codeql

# CodeQL tools and associated docs
Expand Down
46 changes: 46 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ members = [
"rust/ast-generator",
"rust/autobuild",
]
exclude = ["mad-generation-build"]

[patch.crates-io]
# patch for build script bug preventing bazel build
Expand Down
21 changes: 11 additions & 10 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ use_repo(
"vendor_ts__tree-sitter-ruby-0.23.1",
"vendor_ts__triomphe-0.1.14",
"vendor_ts__ungrammar-1.16.1",
"vendor_ts__zstd-0.13.3",
)

http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
Expand Down Expand Up @@ -238,24 +239,24 @@ go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//go/extractor:go.mod")
use_repo(go_deps, "org_golang_x_mod", "org_golang_x_tools")

lfs_files = use_repo_rule("//misc/bazel:lfs.bzl", "lfs_files")
lfs_archive = use_repo_rule("//misc/bazel:lfs.bzl", "lfs_archive")

lfs_files(
lfs_archive(
name = "ripunzip-linux",
srcs = ["//misc/ripunzip:ripunzip-linux"],
executable = True,
src = "//misc/ripunzip:ripunzip-Linux.zip",
build_file = "//misc/ripunzip:BUILD.ripunzip.bazel",
)

lfs_files(
lfs_archive(
name = "ripunzip-windows",
srcs = ["//misc/ripunzip:ripunzip-windows.exe"],
executable = True,
src = "//misc/ripunzip:ripunzip-Windows.zip",
build_file = "//misc/ripunzip:BUILD.ripunzip.bazel",
)

lfs_files(
lfs_archive(
name = "ripunzip-macos",
srcs = ["//misc/ripunzip:ripunzip-macos"],
executable = True,
src = "//misc/ripunzip:ripunzip-macOS.zip",
build_file = "//misc/ripunzip:BUILD.ripunzip.bazel",
)

register_toolchains(
Expand Down
8 changes: 8 additions & 0 deletions actions/ql/lib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 0.4.11

No user-facing changes.

## 0.4.10

No user-facing changes.

## 0.4.9

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

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

No user-facing changes.
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.9
lastReleaseVersion: 0.4.11
4 changes: 2 additions & 2 deletions actions/ql/lib/codeql/actions/Ast.qll
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ class Expression extends AstNode instanceof ExpressionImpl {
string getNormalizedExpression() { result = normalizeExpr(expression) }
}

/** A common class for `env` in workflow, job or step. */
abstract class Env extends AstNode instanceof EnvImpl {
/** An `env` in workflow, job or step. */
class Env extends AstNode instanceof EnvImpl {
/** Gets an environment variable value given its name. */
ScalarValueImpl getEnvVarValue(string name) { result = super.getEnvVarValue(name) }

Expand Down
13 changes: 9 additions & 4 deletions actions/ql/lib/ext/config/actions_permissions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,21 @@ extensions:
- ["actions/stale", "pull-requests: write"]
- ["actions/attest-build-provenance", "id-token: write"]
- ["actions/attest-build-provenance", "attestations: write"]
- ["actions/deploy-pages", "pages: write"]
- ["actions/deploy-pages", "id-token: write"]
- ["actions/delete-package-versions", "packages: write"]
- ["actions/jekyll-build-pages", "contents: read"]
- ["actions/jekyll-build-pages", "pages: write"]
- ["actions/jekyll-build-pages", "id-token: write"]
- ["actions/publish-action", "contents: write"]
- ["actions/versions-package-tools", "contents: read"]
- ["actions/versions-package-tools", "contents: read"]
- ["actions/versions-package-tools", "actions: read"]
- ["actions/reusable-workflows", "contents: read"]
- ["actions/reusable-workflows", "contents: read"]
- ["actions/reusable-workflows", "actions: read"]
- ["actions/ai-inference", "contents: read"]
- ["actions/ai-inference", "models: read"]
# TODO: Add permissions for actions/download-artifact
# TODO: Add permissions for actions/upload-artifact
# No permissions needed for actions/upload-pages-artifact
# TODO: Add permissions for actions/cache


# No permissions needed for actions/configure-pages
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.9
version: 0.4.11
library: true
warnOnImplicitThis: true
dependencies:
Expand Down
10 changes: 10 additions & 0 deletions actions/ql/src/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 0.6.3

No user-facing changes.

## 0.6.2

### Minor Analysis Improvements

* The query `actions/missing-workflow-permissions` is now aware of the minimal permissions needed for the actions `deploy-pages`, `delete-package-versions`, `ai-inference`. This should lead to better alert messages and better fix suggestions.

## 0.6.1

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

### Minor Analysis Improvements

* The query `actions/missing-workflow-permissions` is now aware of the minimal permissions needed for the actions `deploy-pages`, `delete-package-versions`, `ai-inference`. This should lead to better alert messages and better fix suggestions.
3 changes: 3 additions & 0 deletions actions/ql/src/change-notes/released/0.6.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 0.6.3

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.1
lastReleaseVersion: 0.6.3
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.1
version: 0.6.3
library: false
warnOnImplicitThis: true
groups: [actions, queries]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
on:
workflow_call:
workflow_dispatch:

jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/ai-inference
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
on:
workflow_call:
workflow_dispatch:

jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/deploy-pages
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
on:
workflow_call:
workflow_dispatch:

jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/delete-package-versions
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
| .github/workflows/perms5.yml:7:5:10:32 | Job: build | Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read} |
| .github/workflows/perms6.yml:7:5:11:39 | Job: build | Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read, id-token: write, pages: write} |
| .github/workflows/perms7.yml:7:5:10:38 | Job: build | Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {} |
| .github/workflows/perms8.yml:7:5:10:33 | Job: build | Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {id-token: write, pages: write} |
| .github/workflows/perms9.yml:7:5:10:44 | Job: build | Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {packages: write} |
| .github/workflows/perms10.yml:7:5:10:33 | Job: build | Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read, models: read} |
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int getKind(int kind) {
if kind = 14
then result = 6 // Represent MSFT #import as #include
else
if kind = 15 or kind = 6
if kind = 15 or kind = 16
then result = 3 // Represent #elifdef and #elifndef as #elif
else result = kind
}
Expand Down
9 changes: 9 additions & 0 deletions cpp/misc/bulk_generation_targets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"strategy": "dca",
"language": "cpp",
"targets": [
{ "name": "openssl", "with-sources": false, "with-sinks": false },
{ "name": "sqlite", "with-sources": false, "with-sinks": false }
],
"destination": "cpp/ql/lib/ext/generated"
}
Loading
Loading