Skip to content

Commit 96a9c34

Browse files
committed
QL: add codeql to path
1 parent da6a915 commit 96a9c34

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ jobs:
1616
- name: Checkout repository
1717
uses: actions/checkout@v2
1818

19+
- name: Fetch CodeQL
20+
run: |
21+
LATEST=$(gh release list --repo https://github.com/github/codeql-cli-binaries | cut -f 1 | sort --version-sort | tail -1)
22+
gh release download --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip "$LATEST"
23+
unzip -q codeql-linux64.zip
24+
env:
25+
GITHUB_TOKEN: ${{ github.token }}
26+
1927
- uses: actions/cache@v2
2028
with:
2129
path: |
@@ -25,7 +33,7 @@ jobs:
2533
key: ${{ runner.os }}-qltest-cargo-${{ hashFiles('**/Cargo.lock') }}
2634

2735
- name: Build Extractor
28-
run: ./create-extractor-pack.sh
36+
run: env "PATH=$PATH:${{ github.workspace }}/codeql" ./create-extractor-pack.sh
2937
# TODO
3038

3139
# analyze:

0 commit comments

Comments
 (0)