Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34d91a9

Browse files
committed
Use runner.os in ML-powered queries tests too
1 parent c49c05b commit 34d91a9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.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.

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}"

0 commit comments

Comments
 (0)