File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed
.github/actions/install-codeql Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ name: Setup CodeQL CLI
2
2
description : |
3
3
Install a CodeQL CLI or re-use an existing one from the cache and it to the path.
4
4
inputs :
5
- codeql-cli-version :
6
- description : |
7
- The version of the CodeQL CLI to be downloaded.
5
+
8
6
outputs :
9
7
codeql-cli-version :
10
8
description : " The version of the CodeQL CLI that was installed or retrieved from cache"
@@ -29,17 +27,11 @@ runs:
29
27
env :
30
28
GITHUB_TOKEN : ${{ github.token }}
31
29
CODEQL_HOME : ${{ github.workspace }}/codeql_home
32
- CODEQL_CLI_VERSION : ${{ inputs.codeql-cli-version }}
33
30
run : |
34
- if [ -z "$CODEQL_CLI_VERSION" ]; then
35
- echo "No CodeQL CLI version specified. Checking for .codeqlversion file."
36
- if [ ! -f ./.codeqlversion ]; then
37
- echo "Error: .codeqlversion file not found. Please specify a CodeQL CLI version." >&2
38
- exit 1
39
- fi
40
- echo "Reading CodeQL CLI version from .codeqlversion file."
41
- CODEQL_CLI_VERSION=$(cat ./.codeqlversion)
42
- fi
31
+ set -e
32
+
33
+ echo "Reading CodeQL CLI version from .codeqlversion file."
34
+ CODEQL_CLI_VERSION=$(cat ./.codeqlversion)
43
35
echo "Installing CodeQL CLI v${CODEQL_CLI_VERSION}."
44
36
45
37
mkdir -p $CODEQL_HOME
You can’t perform that action at this time.
0 commit comments