5
5
branches : [ main ]
6
6
workflow_dispatch :
7
7
8
+ env :
9
+ CODEQL_CLI_VERSION : 2.19.2
10
+
8
11
jobs :
9
12
compile-and-test :
10
13
runs-on : ubuntu-latest
@@ -25,15 +28,12 @@ jobs:
25
28
src:
26
29
- '${{ matrix.language }}/**'
27
30
28
- - name : Initialize CodeQL
31
+ - name : Setup CodeQL
29
32
if : steps.changes.outputs.src == 'true'
30
- 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
36
-
33
+ uses : ./.github/actions/install-codeql
34
+ with :
35
+ codeql-cli-version : ${{ env.CODEQL_CLI_VERSION }}
36
+
37
37
- name : Install Packs
38
38
if : steps.changes.outputs.src == 'true'
39
39
env :
@@ -171,14 +171,11 @@ jobs:
171
171
src:
172
172
- '${{ matrix.language }}/ext/**'
173
173
174
- - name : Initialize CodeQL
174
+ - name : Setup CodeQL
175
175
if : steps.changes.outputs.src == 'true'
176
- run : |
177
- VERSION="$(find "${{ runner.tool_cache }}/CodeQL/" -maxdepth 1 -mindepth 1 -type d -print \
178
- | sort \
179
- | tail -n 1 \
180
- | tr -d '\n')"
181
- echo "$VERSION/x64/codeql" >> $GITHUB_PATH
176
+ uses : ./.github/actions/install-codeql
177
+ with :
178
+ codeql-cli-version : ${{ env.CODEQL_CLI_VERSION }}
182
179
183
180
- name : Install Packs
184
181
if : steps.changes.outputs.src == 'true'
@@ -209,14 +206,11 @@ jobs:
209
206
src:
210
207
- '${{ matrix.language }}/ext-library-sources/**'
211
208
212
- - name : Initialize CodeQL
209
+ - name : Setup CodeQL
213
210
if : steps.changes.outputs.src == 'true'
214
- run : |
215
- VERSION="$(find "${{ runner.tool_cache }}/CodeQL/" -maxdepth 1 -mindepth 1 -type d -print \
216
- | sort \
217
- | tail -n 1 \
218
- | tr -d '\n')"
219
- echo "$VERSION/x64/codeql" >> $GITHUB_PATH
211
+ uses : ./.github/actions/install-codeql
212
+ with :
213
+ codeql-cli-version : ${{ env.CODEQL_CLI_VERSION }}
220
214
221
215
- name : Install CodeQL
222
216
if : steps.changes.outputs.src == 'true'
@@ -240,14 +234,11 @@ jobs:
240
234
src:
241
235
- 'configs/**'
242
236
243
- - name : Initialize CodeQL
237
+ - name : Setup CodeQL
244
238
if : steps.changes.outputs.src == 'true'
245
- run : |
246
- VERSION="$(find "${{ runner.tool_cache }}/CodeQL/" -maxdepth 1 -mindepth 1 -type d -print \
247
- | sort \
248
- | tail -n 1 \
249
- | tr -d '\n')"
250
- echo "$VERSION/x64/codeql" >> $GITHUB_PATH
239
+ uses : ./.github/actions/install-codeql
240
+ with :
241
+ codeql-cli-version : ${{ env.CODEQL_CLI_VERSION }}
251
242
252
243
- name : " Check Configurations"
253
244
if : steps.changes.outputs.src == 'true'
0 commit comments