Skip to content

Commit 18c5a8c

Browse files
authored
Merge branch 'main' into js/case-sensitive-middleware
2 parents da81230 + 80cbddf commit 18c5a8c

File tree

748 files changed

+15075
-4837
lines changed

Some content is hidden

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

748 files changed

+15075
-4837
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- "*/ql/lib/**/*.qll"
1111
- "!**/experimental/**"
1212
- "!ql/**"
13+
- "!swift/**"
1314
- ".github/workflows/check-change-note.yml"
1415

1516
jobs:

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

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
uses: github/codeql-action/init@aa93aea877e5fb8841bcb1193f672abf6e9f2980
2020
with:
2121
languages: javascript # does not matter
22-
tools: latest
2322
- name: Get CodeQL version
2423
id: get-codeql-version
2524
run: |
@@ -50,9 +49,6 @@ jobs:
5049
path: ${{ runner.temp }}/query-pack.zip
5150

5251
extractors:
53-
strategy:
54-
fail-fast: false
55-
5652
runs-on: ubuntu-latest
5753

5854
steps:
@@ -187,17 +183,43 @@ jobs:
187183
languages: ql
188184
db-location: ${{ runner.temp }}/db
189185
config-file: ./ql-for-ql-config.yml
190-
tools: latest
191186

192187
- name: Perform CodeQL Analysis
193188
uses: github/codeql-action/analyze@aa93aea877e5fb8841bcb1193f672abf6e9f2980
194189
with:
195190
category: "ql-for-ql-${{ matrix.folder }}"
196191
- name: Copy sarif file to CWD
197192
run: cp ../results/ql.sarif ./${{ matrix.folder }}.sarif
193+
- name: Fixup the $scema in sarif # Until https://github.com/microsoft/sarif-vscode-extension/pull/436/ is part in a stable release
194+
run: |
195+
sed -i 's/\$schema.*/\$schema": "https:\/\/raw.githubusercontent.com\/oasis-tcs\/sarif-spec\/master\/Schemata\/sarif-schema-2.1.0",/' ${{ matrix.folder }}.sarif
198196
- name: Sarif as artifact
199197
uses: actions/upload-artifact@v3
200198
with:
201199
name: ${{ matrix.folder }}.sarif
202200
path: ${{ matrix.folder }}.sarif
203201

202+
combine:
203+
runs-on: ubuntu-latest
204+
needs:
205+
- analyze
206+
207+
steps:
208+
- uses: actions/checkout@v3
209+
- name: Make a folder for artifacts.
210+
run: mkdir -p results
211+
- name: Download all sarif files
212+
uses: actions/download-artifact@v3
213+
with:
214+
path: results
215+
- uses: actions/setup-node@v3
216+
with:
217+
node-version: 16
218+
- name: Combine all sarif files
219+
run: |
220+
node ./ql/scripts/merge-sarif.js results/**/*.sarif combined.sarif
221+
- name: Upload combined sarif file
222+
uses: actions/upload-artifact@v3
223+
with:
224+
name: combined.sarif
225+
path: combined.sarif

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
ql/target
3737
key: ${{ runner.os }}-qltest-cargo-${{ hashFiles('ql/**/Cargo.lock') }}
3838
- name: Build Extractor
39-
run: cd ql; env "PATH=$PATH:`dirname ${CODEQL}`" ./create-extractor-pack.sh
39+
run: cd ql; env "PATH=$PATH:`dirname ${CODEQL}`" ./scripts/create-extractor-pack.sh
4040
env:
4141
CODEQL: ${{ steps.find-codeql.outputs.codeql-path }}
4242
- name: Checkout ${{ matrix.repo }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: |
3737
cd ql;
3838
codeqlpath=$(dirname ${{ steps.find-codeql.outputs.codeql-path }});
39-
env "PATH=$PATH:$codeqlpath" ./create-extractor-pack.sh
39+
env "PATH=$PATH:$codeqlpath" ./scripts/create-extractor-pack.sh
4040
- name: Run QL tests
4141
run: |
4242
"${CODEQL}" test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path "${{ github.workspace }}/ql/extractor-pack" --consistency-queries ql/ql/consistency-queries ql/ql/test
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "Swift: Run Integration Tests"
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "swift/**"
7+
- .github/workflows/swift-integration-tests.yml
8+
- codeql-workspace.yml
9+
branches:
10+
- main
11+
defaults:
12+
run:
13+
working-directory: swift
14+
15+
jobs:
16+
integration-tests:
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os:
22+
- ubuntu-20.04
23+
# - macos-latest TODO
24+
steps:
25+
- uses: actions/checkout@v3
26+
- uses: ./.github/actions/fetch-codeql
27+
- uses: bazelbuild/setup-bazelisk@v2
28+
- uses: actions/setup-python@v3
29+
- name: Build Swift extractor
30+
run: |
31+
bazel run //swift:create-extractor-pack
32+
- name: Run integration tests
33+
run: |
34+
python integration-tests/runner.py

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ WORKSPACE.bazel @github/codeql-ci-reviewers
4242
/.github/workflows/js-ml-tests.yml @github/codeql-ml-powered-queries-reviewers
4343
/.github/workflows/ql-for-ql-* @github/codeql-ql-for-ql-reviewers
4444
/.github/workflows/ruby-* @github/codeql-ruby
45+
/.github/workflows/swift-* @github/codeql-c

config/identical-files.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -453,11 +453,11 @@
453453
"python/ql/src/Lexical/CommentedOutCodeReferences.inc.qhelp"
454454
],
455455
"IDE Contextual Queries": [
456-
"cpp/ql/src/IDEContextual.qll",
457-
"csharp/ql/src/IDEContextual.qll",
458-
"java/ql/src/IDEContextual.qll",
459-
"javascript/ql/src/IDEContextual.qll",
460-
"python/ql/src/analysis/IDEContextual.qll"
456+
"cpp/ql/lib/IDEContextual.qll",
457+
"csharp/ql/lib/IDEContextual.qll",
458+
"java/ql/lib/IDEContextual.qll",
459+
"javascript/ql/lib/IDEContextual.qll",
460+
"python/ql/lib/analysis/IDEContextual.qll"
461461
],
462462
"SSA C#": [
463463
"csharp/ql/lib/semmle/code/csharp/dataflow/internal/SsaImplCommon.qll",

cpp/ql/lib/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 0.3.0
2+
3+
### Deprecated APIs
4+
5+
* The `BarrierGuard` class has been deprecated. Such barriers and sanitizers can now instead be created using the new `BarrierGuard` parameterized module.
6+
7+
### Bug Fixes
8+
9+
* `UserType.getADeclarationEntry()` now yields all forward declarations when the user type is a `class`, `struct`, or `union`.
10+
111
## 0.2.3
212

313
### New Features
File renamed without changes.

cpp/ql/lib/change-notes/2022-05-30-braced-initializers.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)