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

Skip to content

Commit 91ae237

Browse files
committed
Use latest CodeQL for CI
1 parent dd954ea commit 91ae237

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/dataset_measure.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222

2323
- name: Fetch CodeQL
2424
run: |
25-
gh release download --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip
25+
LATEST=$(gh release list --repo https://github.com/github/codeql-cli-binaries | cut -f 1 | sort --version-sort | tail -1)
26+
gh release download --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip "$LATEST"
2627
unzip -q codeql-linux64.zip
2728
env:
2829
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/qltest.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
- uses: actions/checkout@v2
1717
- name: Fetch CodeQL
1818
run: |
19-
gh release download --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip
19+
LATEST=$(gh release list --repo https://github.com/github/codeql-cli-binaries | cut -f 1 | sort --version-sort | tail -1)
20+
gh release download --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip "$LATEST"
2021
unzip -q codeql-linux64.zip
2122
env:
2223
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)