Skip to content

Commit 00d1f8e

Browse files
Merge branch 'main' into maikypedia/swift-zip
2 parents 6739750 + 930f1b5 commit 00d1f8e

File tree

5,463 files changed

+494556
-111946
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,463 files changed

+494556
-111946
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,6 @@ go/extractor/opencsv/CSVReader.java -text
7171
# `javascript/ql/experimental/adaptivethreatmodeling/test/update_endpoint_test_files.py`.
7272
javascript/ql/experimental/adaptivethreatmodeling/test/endpoint_large_scale/autogenerated/**/*.js linguist-generated=true -merge
7373
javascript/ql/experimental/adaptivethreatmodeling/test/endpoint_large_scale/autogenerated/**/*.ts linguist-generated=true -merge
74+
75+
# Auto-generated modeling for Python
76+
python/ql/lib/semmle/python/frameworks/data/internal/subclass-capture/*.yml linguist-generated=true

.github/workflows/close-stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/stale@v8
15+
- uses: actions/stale@v9
1616
with:
1717
repo-token: ${{ secrets.GITHUB_TOKEN }}
1818
stale-issue-message: 'This issue is stale because it has been open 14 days with no activity. Comment or remove the `Stale` label in order to avoid having this issue closed in 7 days.'

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828

2929
steps:
3030
- name: Setup dotnet
31-
uses: actions/setup-dotnet@v3
31+
uses: actions/setup-dotnet@v4
3232
with:
33-
dotnet-version: 7.0.102
33+
dotnet-version: 8.0.100
3434

3535
- name: Checkout repository
3636
uses: actions/checkout@v4

.github/workflows/csharp-qltest.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ jobs:
7272
steps:
7373
- uses: actions/checkout@v4
7474
- name: Setup dotnet
75-
uses: actions/setup-dotnet@v3
75+
uses: actions/setup-dotnet@v4
7676
with:
77-
dotnet-version: 7.0.102
77+
dotnet-version: 8.0.100
7878
- name: Extractor unit tests
7979
run: |
80-
dotnet test -p:RuntimeFrameworkVersion=7.0.2 extractor/Semmle.Util.Tests
81-
dotnet test -p:RuntimeFrameworkVersion=7.0.2 extractor/Semmle.Extraction.Tests
82-
dotnet test -p:RuntimeFrameworkVersion=7.0.2 autobuilder/Semmle.Autobuild.CSharp.Tests
83-
dotnet test -p:RuntimeFrameworkVersion=7.0.2 "${{ github.workspace }}/cpp/autobuilder/Semmle.Autobuild.Cpp.Tests"
80+
dotnet test -p:RuntimeFrameworkVersion=8.0.0 extractor/Semmle.Util.Tests
81+
dotnet test -p:RuntimeFrameworkVersion=8.0.0 extractor/Semmle.Extraction.Tests
82+
dotnet test -p:RuntimeFrameworkVersion=8.0.0 autobuilder/Semmle.Autobuild.CSharp.Tests
83+
dotnet test -p:RuntimeFrameworkVersion=8.0.0 "${{ github.workspace }}/cpp/autobuilder/Semmle.Autobuild.Cpp.Tests"
8484
shell: bash
8585
stubgentest:
8686
runs-on: ubuntu-latest

.github/workflows/go-tests-other-os.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: macos-latest
1616
steps:
1717
- name: Set up Go ${{ env.GO_VERSION }}
18-
uses: actions/setup-go@v4
18+
uses: actions/setup-go@v5
1919
with:
2020
go-version: ${{ env.GO_VERSION }}
2121
id: go
@@ -50,7 +50,7 @@ jobs:
5050
runs-on: windows-latest-xl
5151
steps:
5252
- name: Set up Go ${{ env.GO_VERSION }}
53-
uses: actions/setup-go@v4
53+
uses: actions/setup-go@v5
5454
with:
5555
go-version: ${{ env.GO_VERSION }}
5656
id: go

.github/workflows/go-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest-xl
2424
steps:
2525
- name: Set up Go ${{ env.GO_VERSION }}
26-
uses: actions/setup-go@v4
26+
uses: actions/setup-go@v5
2727
with:
2828
go-version: ${{ env.GO_VERSION }}
2929
id: go

.github/workflows/mad_modelDiff.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
- main
1313
paths:
1414
- "java/ql/src/utils/modelgenerator/**/*.*"
15+
- "misc/scripts/models-as-data/*.*"
1516
- ".github/workflows/mad_modelDiff.yml"
1617

1718
permissions:
@@ -61,8 +62,9 @@ jobs:
6162
DATABASE=$2
6263
cd codeql-$QL_VARIANT
6364
SHORTNAME=`basename $DATABASE`
64-
python java/ql/src/utils/modelgenerator/GenerateFlowModel.py --with-summaries --with-sinks $DATABASE ${SHORTNAME}.temp.model.yml
65-
mv java/ql/lib/ext/generated/${SHORTNAME}.temp.model.yml $MODELS/${SHORTNAME}Generated_${QL_VARIANT}.model.yml
65+
python java/ql/src/utils/modelgenerator/GenerateFlowModel.py --with-summaries --with-sinks $DATABASE $SHORTNAME/$QL_VARIANT
66+
mkdir -p $MODELS/$SHORTNAME
67+
mv java/ql/lib/ext/generated/$SHORTNAME/$QL_VARIANT $MODELS/$SHORTNAME
6668
cd ..
6769
}
6870
@@ -85,16 +87,16 @@ jobs:
8587
set -x
8688
MODELS=`pwd`/tmp-models
8789
ls -1 tmp-models/
88-
for m in $MODELS/*_main.model.yml ; do
90+
for m in $MODELS/*/main/*.model.yml ; do
8991
t="${m/main/"pr"}"
9092
basename=`basename $m`
91-
name="diff_${basename/_main.model.yml/""}"
93+
name="diff_${basename/.model.yml/""}"
9294
(diff -w -u $m $t | diff2html -i stdin -F $MODELS/$name.html) || true
9395
done
9496
- uses: actions/upload-artifact@v3
9597
with:
9698
name: models
97-
path: tmp-models/*.model.yml
99+
path: tmp-models/**/**/*.model.yml
98100
retention-days: 20
99101
- uses: actions/upload-artifact@v3
100102
with:

CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/swift/ @github/codeql-swift
99
/misc/codegen/ @github/codeql-swift
1010
/java/kotlin-extractor/ @github/codeql-kotlin
11+
/java/ql/test-kotlin1/ @github/codeql-kotlin
12+
/java/ql/test-kotlin2/ @github/codeql-kotlin
1113

1214
# ML-powered queries
1315
/javascript/ql/experimental/adaptivethreatmodeling/ @github/codeql-ml-powered-queries-reviewers
@@ -42,3 +44,4 @@ WORKSPACE.bazel @github/codeql-ci-reviewers
4244

4345
# Misc
4446
/misc/scripts/accept-expected-changes-from-ci.py @RasmusWL
47+
/misc/scripts/generate-code-scanning-query-list.py @RasmusWL

codeql-workspace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
provide:
22
- "*/ql/src/qlpack.yml"
33
- "*/ql/lib/qlpack.yml"
4-
- "*/ql/test/qlpack.yml"
4+
- "*/ql/test*/qlpack.yml"
55
- "*/ql/examples/qlpack.yml"
66
- "*/ql/consistency-queries/qlpack.yml"
77
- "*/ql/automodel/src/qlpack.yml"

config/identical-files.json

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,6 @@
5353
"ruby/ql/lib/codeql/ruby/dataflow/internal/tainttracking1/TaintTrackingImpl.qll",
5454
"swift/ql/lib/codeql/swift/dataflow/internal/tainttracking1/TaintTrackingImpl.qll"
5555
],
56-
"DataFlow Java/C#/Go/Ruby/Python/Swift Flow Summaries": [
57-
"java/ql/lib/semmle/code/java/dataflow/internal/FlowSummaryImpl.qll",
58-
"csharp/ql/lib/semmle/code/csharp/dataflow/internal/FlowSummaryImpl.qll",
59-
"go/ql/lib/semmle/go/dataflow/internal/FlowSummaryImpl.qll",
60-
"ruby/ql/lib/codeql/ruby/dataflow/internal/FlowSummaryImpl.qll",
61-
"python/ql/lib/semmle/python/dataflow/new/internal/FlowSummaryImpl.qll",
62-
"swift/ql/lib/codeql/swift/dataflow/internal/FlowSummaryImpl.qll"
63-
],
6456
"SsaReadPosition Java/C#": [
6557
"java/ql/lib/semmle/code/java/dataflow/internal/rangeanalysis/SsaReadPositionCommon.qll",
6658
"csharp/ql/lib/semmle/code/csharp/dataflow/internal/rangeanalysis/SsaReadPositionCommon.qll"
@@ -462,23 +454,6 @@
462454
"ruby/ql/lib/codeql/ruby/security/internal/SensitiveDataHeuristics.qll",
463455
"swift/ql/lib/codeql/swift/security/internal/SensitiveDataHeuristics.qll"
464456
],
465-
"TypeTracker": [
466-
"python/ql/lib/semmle/python/dataflow/new/internal/TypeTracker.qll",
467-
"ruby/ql/lib/codeql/ruby/typetracking/TypeTracker.qll"
468-
],
469-
"SummaryTypeTracker": [
470-
"python/ql/lib/semmle/python/dataflow/new/internal/SummaryTypeTracker.qll",
471-
"ruby/ql/lib/codeql/ruby/typetracking/internal/SummaryTypeTracker.qll"
472-
],
473-
"AccessPathSyntax": [
474-
"csharp/ql/lib/semmle/code/csharp/dataflow/internal/AccessPathSyntax.qll",
475-
"go/ql/lib/semmle/go/dataflow/internal/AccessPathSyntax.qll",
476-
"java/ql/lib/semmle/code/java/dataflow/internal/AccessPathSyntax.qll",
477-
"javascript/ql/lib/semmle/javascript/frameworks/data/internal/AccessPathSyntax.qll",
478-
"ruby/ql/lib/codeql/ruby/dataflow/internal/AccessPathSyntax.qll",
479-
"python/ql/lib/semmle/python/dataflow/new/internal/AccessPathSyntax.qll",
480-
"swift/ql/lib/codeql/swift/dataflow/internal/AccessPathSyntax.qll"
481-
],
482457
"IncompleteUrlSubstringSanitization": [
483458
"javascript/ql/src/Security/CWE-020/IncompleteUrlSubstringSanitization.qll",
484459
"ruby/ql/src/queries/security/cwe-020/IncompleteUrlSubstringSanitization.qll"
@@ -498,10 +473,6 @@
498473
"ruby/ql/lib/codeql/ruby/frameworks/data/internal/ApiGraphModelsExtensions.qll",
499474
"python/ql/lib/semmle/python/frameworks/data/internal/ApiGraphModelsExtensions.qll"
500475
],
501-
"Typo database": [
502-
"javascript/ql/src/Expressions/TypoDatabase.qll",
503-
"ql/ql/src/codeql_ql/style/TypoDatabase.qll"
504-
],
505476
"Swift declarations test file": [
506477
"swift/ql/test/extractor-tests/declarations/declarations.swift",
507478
"swift/ql/test/library-tests/ast/declarations.swift"
@@ -534,4 +505,4 @@
534505
"python/ql/test/experimental/dataflow/model-summaries/InlineTaintTest.ext.yml",
535506
"python/ql/test/experimental/dataflow/model-summaries/NormalDataflowTest.ext.yml"
536507
]
537-
}
508+
}

0 commit comments

Comments
 (0)