Skip to content

Commit 33b2045

Browse files
authored
Merge branch 'main' into henrymercer/update-v1-deprecation-date
2 parents 6013661 + def4f60 commit 33b2045

14 files changed

Lines changed: 89 additions & 98 deletions

.github/workflows/__export-file-baseline-information.yml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__ml-powered-queries.yml

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__multi-language-autodetect.yml

Lines changed: 33 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__ruby-autodetect.yml

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

.github/workflows/__ruby.yml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__swift-autobuild.yml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__swift-custom-build.yml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-checks/checks/export-file-baseline-information.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: "Export file baseline information"
22
description: "Tests that file baseline information is exported when the feature is enabled"
33
versions: ["nightly-latest"]
44
steps:
5+
- uses: swift-actions/setup-swift@5cdaa9161ad1f55ae39a5ea1784ef96de72f95d9
6+
if: runner.os != 'Windows'
7+
with:
8+
swift-version: "5.7"
59
- uses: ./../action/init
610
with:
711
languages: javascript

pr-checks/checks/ml-powered-queries.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ steps:
3030
- name: Check sarif
3131
uses: ./../action/.github/check-sarif
3232
# Running on Windows requires CodeQL CLI 2.9.0+.
33-
if: "!(matrix.version == 'stable-20220120' && (matrix.os == 'windows-latest' || matrix.os == 'windows-2019'))"
33+
if: "!(matrix.version == 'stable-20220120' && runner.os == 'Windows')"
3434
with:
3535
sarif-file: ${{ runner.temp }}/results/javascript.sarif
3636
queries-run: js/ml-powered/nosql-injection,js/ml-powered/path-injection,js/ml-powered/sql-injection,js/ml-powered/xss
@@ -39,7 +39,7 @@ steps:
3939
- name: Check results
4040
env:
4141
# Running on Windows requires CodeQL CLI 2.9.0+.
42-
SHOULD_RUN_ML_POWERED_QUERIES: ${{ !(matrix.version == 'stable-20220120' && (matrix.os == 'windows-latest' || matrix.os == 'windows-2019')) }}
42+
SHOULD_RUN_ML_POWERED_QUERIES: ${{ !(matrix.version == 'stable-20220120' && runner.os == 'Windows') }}
4343
shell: bash
4444
run: |
4545
echo "Expecting ML-powered queries to be run: ${SHOULD_RUN_ML_POWERED_QUERIES}"

pr-checks/checks/multi-language-autodetect.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
11
name: "Multi-language repository"
22
description: "An end-to-end integration test of a multi-language repository using automatic language detection"
33
operatingSystems: ["ubuntu", "macos"]
4+
env:
5+
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true" # Remove when Swift is GA.
46
steps:
7+
- uses: swift-actions/setup-swift@5cdaa9161ad1f55ae39a5ea1784ef96de72f95d9
8+
if: runner.os != 'Windows'
9+
with:
10+
swift-version: "5.7"
11+
512
- uses: ./../action/init
613
with:
714
db-location: "${{ runner.temp }}/customDbLocation"
815
tools: ${{ steps.prepare-test.outputs.tools-url }}
16+
917
- name: Build code
1018
shell: bash
1119
run: ./build.sh
20+
1221
- uses: ./../action/analyze
1322
id: analysis
14-
- shell: bash
23+
24+
- name: Check language autodetect for all languages excluding Ruby, Swift
25+
shell: bash
1526
run: |
1627
CPP_DB=${{ fromJson(steps.analysis.outputs.db-locations).cpp }}
1728
if [[ ! -d $CPP_DB ]] || [[ ! $CPP_DB == ${{ runner.temp }}/customDbLocation/* ]]; then
@@ -43,3 +54,23 @@ steps:
4354
echo "Did not create a database for Python, or created it in the wrong location."
4455
exit 1
4556
fi
57+
58+
- name: Check language autodetect for Ruby
59+
if: "(matrix.version == 'cached' || matrix.version == 'latest' || matrix.version == 'nightly-latest')"
60+
shell: bash
61+
run: |
62+
RUBY_DB=${{ fromJson(steps.analysis.outputs.db-locations).ruby }}
63+
if [[ ! -d $RUBY_DB ]] || [[ ! $RUBY_DB == ${{ runner.temp }}/customDbLocation/* ]]; then
64+
echo "Did not create a database for Ruby, or created it in the wrong location."
65+
exit 1
66+
fi
67+
68+
- name: Check language autodetect for Swift
69+
if: "!startsWith(matrix.os, 'windows') && (matrix.version == 'cached' || matrix.version == 'latest' || matrix.version == 'nightly-latest')"
70+
shell: bash
71+
run: |
72+
SWIFT_DB=${{ fromJson(steps.analysis.outputs.db-locations).swift }}
73+
if [[ ! -d $SWIFT_DB ]] || [[ ! $SWIFT_DB == ${{ runner.temp }}/customDbLocation/* ]]; then
74+
echo "Did not create a database for Swift, or created it in the wrong location."
75+
exit 1
76+
fi

0 commit comments

Comments
 (0)