Use latest CodeQL for CI

This commit is contained in:
Arthur Baars
2020-12-17 10:47:51 +01:00
parent dd954ea943
commit 91ae237434
2 changed files with 4 additions and 2 deletions

View File

@@ -22,7 +22,8 @@ jobs:
- name: Fetch CodeQL
run: |
gh release download --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip
LATEST=$(gh release list --repo https://github.com/github/codeql-cli-binaries | cut -f 1 | sort --version-sort | tail -1)
gh release download --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip "$LATEST"
unzip -q codeql-linux64.zip
env:
GITHUB_TOKEN: ${{ github.token }}

View File

@@ -16,7 +16,8 @@ jobs:
- uses: actions/checkout@v2
- name: Fetch CodeQL
run: |
gh release download --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip
LATEST=$(gh release list --repo https://github.com/github/codeql-cli-binaries | cut -f 1 | sort --version-sort | tail -1)
gh release download --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip "$LATEST"
unzip -q codeql-linux64.zip
env:
GITHUB_TOKEN: ${{ github.token }}