We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c67cef0 commit 6804a32Copy full SHA for 6804a32
.github/actions/install-codeql/action.yml
@@ -32,7 +32,12 @@ runs:
32
CODEQL_CLI_VERSION: ${{ inputs.codeql-cli-version }}
33
run: |
34
if [ -z "$CODEQL_CLI_VERSION" ]; then
35
- echo "No CodeQL CLI version specified. Reading from .codeqlversion file."
+ 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
43
echo "Installing CodeQL CLI v${CODEQL_CLI_VERSION}."
0 commit comments