File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 5
5
codeql-cli-version :
6
6
description : |
7
7
The version of the CodeQL CLI to be downloaded.
8
+ outputs :
9
+ codeql-cli-version :
10
+ description : " The version of the CodeQL CLI that was installed or retrieved from cache"
11
+ value : ${{ steps.install-codeql.outputs.codeql-cli-version }}
8
12
9
13
runs :
10
14
using : composite
19
23
key : codeql-home-${{ inputs.codeql-cli-version }}
20
24
21
25
- name : Install CodeQL
26
+ id : install-codeql
22
27
if : steps.cache-codeql.outputs.cache-hit != 'true'
23
28
shell : bash
24
29
env :
44
49
45
50
popd
46
51
echo "Done."
52
+ echo "codeql-cli-version=${CODEQL_CLI_VERSION}" >> $GITHUB_OUTPUT
47
53
48
54
- name : Add CodeQL to the PATH
49
55
shell : bash
Original file line number Diff line number Diff line change @@ -31,15 +31,14 @@ jobs:
31
31
32
32
- name : Setup CodeQL
33
33
if : steps.changes.outputs.src == 'true'
34
+ id : install-codeql
34
35
uses : ./.github/actions/install-codeql
35
- with :
36
- codeql-cli-version : ${{ env.CODEQL_CLI_VERSION }}
37
36
38
37
- name : Install Packs
39
38
if : steps.changes.outputs.src == 'true'
40
39
env :
41
40
GITHUB_TOKEN : ${{ github.token }}
42
- CODEQL_CLI_VERSION : ${{ env.CODEQL_CLI_VERSION }}
41
+ CODEQL_CLI_VERSION : ${{ steps.install-codeql.outputs.codeql-cli-version }}
43
42
run : |
44
43
gh repo clone github/codeql -- -b codeql-cli-${CODEQL_CLI_VERSION} # to make stubs available for tests
45
44
codeql pack install "${{ matrix.language }}/lib"
@@ -247,5 +246,3 @@ jobs:
247
246
GITHUB_TOKEN : ${{ github.token }}
248
247
run : |
249
248
./.github/scripts/pr-configs.sh "${{ github.event.number }}"
250
-
251
-
Original file line number Diff line number Diff line change 5
5
branches : [main]
6
6
workflow_dispatch :
7
7
8
- env :
9
- CODEQL_CLI_VERSION : 2.20.1
10
8
11
9
jobs :
12
10
queries :
42
40
- name : Setup CodeQL
43
41
if : steps.check_version.outputs.publish == 'true'
44
42
uses : ./.github/actions/install-codeql
45
- with :
46
- codeql-cli-version : ${{ env.CODEQL_CLI_VERSION }}
47
43
48
44
- name : Publish codeql-LANG-queries (src) pack.
49
45
if : steps.check_version.outputs.publish == 'true'
You can’t perform that action at this time.
0 commit comments