File tree Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,27 @@ jobs:
25
25
src:
26
26
- '${{ matrix.language }}/**'
27
27
28
- - name : Initialize CodeQL
29
- if : steps.changes.outputs.src == 'true'
28
+ # TODO: Consider to introduce caching for the CodeQL CLI.
29
+ - name : Install CodeQL
30
+ shell : bash
31
+ env :
32
+ GITHUB_TOKEN : ${{ github.token }}
33
+ CODEQL_HOME : ${{ github.workspace }}/codeql_home
30
34
run : |
31
- VERSION="$(find "${{ runner.tool_cache }}/CodeQL/" -maxdepth 1 -mindepth 1 -type d -print \
32
- | sort \
33
- | tail -n 1 \
34
- | tr -d '\n')"
35
- echo "$VERSION/x64/codeql" >> $GITHUB_PATH
35
+ mkdir -p $CODEQL_HOME
36
+ echo "Change directory to $CODEQL_HOME"
37
+ pushd $CODEQL_HOME
38
+
39
+ echo "Downloading CodeQL CLI"
40
+ gh release download v2.19.2 --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip
41
+
42
+ echo "Unzipping CodeQL CLI"
43
+ unzip -q codeql-linux64.zip
44
+
45
+ popd
46
+
47
+ echo "Adding CodeQL CLI to PATH"
48
+ echo "$CODEQL_HOME/codeql" >> $GITHUB_PATH
36
49
37
50
- name : Install Packs
38
51
if : steps.changes.outputs.src == 'true'
You can’t perform that action at this time.
0 commit comments