PR Checks: Use version of codeql repo suitable for CLI version
This commit is contained in:
committed by
Edoardo Pirovano
parent
3536124fbc
commit
2da1065027
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
@@ -177,10 +177,26 @@ jobs:
|
|||||||
npm run build
|
npm run build
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
- name: Decide on ref of CodeQL repo
|
||||||
|
id: choose-ref
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [[ "${{ matrix.version }}" == "nightly" ]]
|
||||||
|
then
|
||||||
|
REF="codeql-cli/latest"
|
||||||
|
elif [[ "${{ matrix.version }}" == "v2.2.6" || "${{ matrix.version }}" == "v2.3.3" ]]
|
||||||
|
then
|
||||||
|
REF="codeql-cli/v2.4.5"
|
||||||
|
else
|
||||||
|
REF="codeql-cli/${{ matrix.version }}"
|
||||||
|
fi
|
||||||
|
echo "::set-output name=ref::$REF"
|
||||||
|
|
||||||
- name: Checkout QL
|
- name: Checkout QL
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: github/codeql
|
repository: github/codeql
|
||||||
|
ref: ${{ steps.choose-ref.outputs.ref }}
|
||||||
path: codeql
|
path: codeql
|
||||||
|
|
||||||
- name: Run CLI tests (Linux)
|
- name: Run CLI tests (Linux)
|
||||||
|
|||||||
Reference in New Issue
Block a user