Skip to content

Commit 8052b35

Browse files
authored
Merge branch 'main' into csharp-ext
2 parents c493e27 + cc45db7 commit 8052b35

File tree

1,714 files changed

+76638
-40521
lines changed

Some content is hidden

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

1,714 files changed

+76638
-40521
lines changed

.github/labeler.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Go:
1111
- change-notes/**/*go.*
1212

1313
Java:
14-
- any: [ 'java/**/*', '!java/kotlin-extractor/**/*', '!java/kotlin-explorer/**/*', '!java/ql/test/kotlin/**/*' ]
14+
- any: [ 'java/**/*', '!java/kotlin-extractor/**/*', '!java/ql/test/kotlin/**/*' ]
1515
- change-notes/**/*java.*
1616

1717
JS:
@@ -20,7 +20,6 @@ JS:
2020

2121
Kotlin:
2222
- java/kotlin-extractor/**/*
23-
- java/kotlin-explorer/**/*
2423
- java/ql/test/kotlin/**/*
2524

2625
Python:

.github/workflows/check-change-note.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
- "*/ql/lib/**/*.yml"
1212
- "!**/experimental/**"
1313
- "!ql/**"
14-
- "!swift/**"
1514
- ".github/workflows/check-change-note.yml"
1615

1716
jobs:
@@ -27,9 +26,9 @@ jobs:
2726
run: |
2827
gh api 'repos/${{github.repository}}/pulls/${{github.event.number}}/files' --paginate --jq 'any(.[].filename ; test("/change-notes/.*[.]md$"))' |
2928
grep true -c
30-
- name: Fail if the change note filename doesn't match the expected format. The file name must be of the form 'YYYY-MM-DD.md' or 'YYYY-MM-DD-{title}.md', where '{title}' is arbitrary text.
29+
- name: Fail if the change note filename doesn't match the expected format. The file name must be of the form 'YYYY-MM-DD.md', 'YYYY-MM-DD-{title}.md', where '{title}' is arbitrary text, or released/x.y.z.md for released change-notes
3130
env:
3231
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3332
run: |
34-
gh api 'repos/${{github.repository}}/pulls/${{github.event.number}}/files' --paginate --jq '[.[].filename | select(test("/change-notes/.*[.]md$"))] | all(test("/change-notes/[0-9]{4}-[0-9]{2}-[0-9]{2}.*[.]md$"))' |
33+
gh api 'repos/${{github.repository}}/pulls/${{github.event.number}}/files' --paginate --jq '[.[].filename | select(test("/change-notes/.*[.]md$"))] | all(test("/change-notes/[0-9]{4}-[0-9]{2}-[0-9]{2}.*[.]md$") or test("/change-notes/released/[0-9]*[.][0-9]*[.][0-9]*[.]md$"))' |
3534
grep true -c

.github/workflows/ql-for-ql-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
path: |
3333
ql/extractor-pack/
3434
ql/target/release/buramu
35-
key: ${{ runner.os }}-${{ steps.os_version.outputs.version }}-extractor-${{ hashFiles('ql/**/Cargo.lock') }}-${{ hashFiles('ql/**/*.rs') }}
35+
key: ${{ runner.os }}-${{ steps.os_version.outputs.version }}-extractor-${{ hashFiles('ql/**/Cargo.lock') }}-${{ hashFiles('shared/tree-sitter-extractor') }}-${{ hashFiles('ql/**/*.rs') }}
3636
- name: Cache cargo
3737
if: steps.cache-extractor.outputs.cache-hit != 'true'
3838
uses: actions/cache@v3

.github/workflows/ruby-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
ruby/extractor/target/release/codeql-extractor-ruby
6262
ruby/extractor/target/release/codeql-extractor-ruby.exe
6363
ruby/extractor/ql/lib/codeql/ruby/ast/internal/TreeSitter.qll
64-
key: ${{ runner.os }}-${{ steps.os_version.outputs.version }}-ruby-extractor-${{ hashFiles('ruby/extractor/rust-toolchain.toml', 'ruby/extractor/Cargo.lock') }}--${{ hashFiles('ruby/extractor/**/*.rs') }}
64+
key: ${{ runner.os }}-${{ steps.os_version.outputs.version }}-ruby-extractor-${{ hashFiles('ruby/extractor/rust-toolchain.toml', 'ruby/extractor/Cargo.lock') }}-${{ hashFiles('shared/tree-sitter-extractor') }}-${{ hashFiles('ruby/extractor/**/*.rs') }}
6565
- uses: actions/cache@v3
6666
if: steps.cache-extractor.outputs.cache-hit != 'true'
6767
with:

.github/workflows/swift.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616
branches:
1717
- main
1818
- rc/*
19+
- codeql-cli-*
1920
push:
2021
paths:
2122
- "swift/**"
@@ -30,6 +31,7 @@ on:
3031
branches:
3132
- main
3233
- rc/*
34+
- codeql-cli-*
3335

3436
jobs:
3537
# not using a matrix as you cannot depend on a specific job in a matrix, and we want to start linux checks

.github/workflows/sync-files.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ jobs:
1717
- uses: actions/checkout@v3
1818
- name: Check synchronized files
1919
run: python config/sync-files.py
20+
- name: Check dbscheme fragments
21+
run: python config/sync-dbscheme-fragments.py
2022

.vscode/tasks.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,22 @@
2222
"command": "${config:python.pythonPath}",
2323
},
2424
"problemMatcher": []
25+
},
26+
{
27+
"label": "Accept .expected changes from CI",
28+
"type": "process",
29+
// Non-Windows OS will usually have Python 3 already installed at /usr/bin/python3.
30+
"command": "python3",
31+
"args": [
32+
"misc/scripts/accept-expected-changes-from-ci.py"
33+
],
34+
"group": "build",
35+
"windows": {
36+
// On Windows, use whatever Python interpreter is configured for this workspace. The default is
37+
// just `python`, so if Python is already on the path, this will find it.
38+
"command": "${config:python.pythonPath}",
39+
},
40+
"problemMatcher": []
2541
}
2642
]
27-
}
43+
}

CODEOWNERS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
/swift/ @github/codeql-swift
99
/misc/codegen/ @github/codeql-swift
1010
/java/kotlin-extractor/ @github/codeql-kotlin
11-
/java/kotlin-explorer/ @github/codeql-kotlin
1211

1312
# ML-powered queries
1413
/javascript/ql/experimental/adaptivethreatmodeling/ @github/codeql-ml-powered-queries-reviewers
@@ -40,3 +39,6 @@ WORKSPACE.bazel @github/codeql-ci-reviewers
4039
/.github/workflows/ql-for-ql-* @github/codeql-ql-for-ql-reviewers
4140
/.github/workflows/ruby-* @github/codeql-ruby
4241
/.github/workflows/swift.yml @github/codeql-swift
42+
43+
# Misc
44+
/misc/scripts/accept-expected-changes-from-ci.py @RasmusWL

config/dbscheme-fragments.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"files": [
3+
"javascript/ql/lib/semmlecode.javascript.dbscheme",
4+
"python/ql/lib/semmlecode.python.dbscheme",
5+
"ruby/ql/lib/ruby.dbscheme",
6+
"ql/ql/src/ql.dbscheme"
7+
],
8+
"fragments": [
9+
"/*- External data -*/",
10+
"/*- Files and folders -*/",
11+
"/*- Diagnostic messages -*/",
12+
"/*- Diagnostic messages: severity -*/",
13+
"/*- Source location prefix -*/",
14+
"/*- Lines of code -*/",
15+
"/*- Configuration files with key value pairs -*/",
16+
"/*- YAML -*/",
17+
"/*- XML Files -*/",
18+
"/*- XML: sourceline -*/",
19+
"/*- DEPRECATED: External defects and metrics -*/",
20+
"/*- DEPRECATED: Snapshot date -*/",
21+
"/*- DEPRECATED: Duplicate code -*/",
22+
"/*- DEPRECATED: Version control data -*/",
23+
"/*- JavaScript-specific part -*/",
24+
"/*- Ruby dbscheme -*/",
25+
"/*- Erb dbscheme -*/",
26+
"/*- QL dbscheme -*/",
27+
"/*- Dbscheme dbscheme -*/",
28+
"/*- Yaml dbscheme -*/",
29+
"/*- Blame dbscheme -*/",
30+
"/*- JSON dbscheme -*/",
31+
"/*- Python dbscheme -*/"
32+
]
33+
}

config/identical-files.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImpl2.qll",
4848
"python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImpl3.qll",
4949
"python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImpl4.qll",
50-
"python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImplForRegExp.qll",
5150
"ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowImpl1.qll",
5251
"ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowImpl2.qll",
5352
"ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowImplForHttpClientLibraries.qll",
@@ -512,7 +511,8 @@
512511
"SensitiveDataHeuristics Python/JS": [
513512
"javascript/ql/lib/semmle/javascript/security/internal/SensitiveDataHeuristics.qll",
514513
"python/ql/lib/semmle/python/security/internal/SensitiveDataHeuristics.qll",
515-
"ruby/ql/lib/codeql/ruby/security/internal/SensitiveDataHeuristics.qll"
514+
"ruby/ql/lib/codeql/ruby/security/internal/SensitiveDataHeuristics.qll",
515+
"swift/ql/lib/codeql/swift/security/internal/SensitiveDataHeuristics.qll"
516516
],
517517
"CFG": [
518518
"csharp/ql/lib/semmle/code/csharp/controlflow/internal/ControlFlowGraphImplShared.qll",
@@ -599,4 +599,4 @@
599599
"python/ql/lib/semmle/python/security/internal/EncryptionKeySizes.qll",
600600
"java/ql/lib/semmle/code/java/security/internal/EncryptionKeySizes.qll"
601601
]
602-
}
602+
}

0 commit comments

Comments
 (0)