Skip to content

Commit 6804a32

Browse files
GeekMasherCopilot
andcommitted
Update .github/actions/install-codeql/action.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c67cef0 commit 6804a32

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/actions/install-codeql/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ runs:
3232
CODEQL_CLI_VERSION: ${{ inputs.codeql-cli-version }}
3333
run: |
3434
if [ -z "$CODEQL_CLI_VERSION" ]; then
35-
echo "No CodeQL CLI version specified. Reading from .codeqlversion file."
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."
3641
CODEQL_CLI_VERSION=$(cat ./.codeqlversion)
3742
fi
3843
echo "Installing CodeQL CLI v${CODEQL_CLI_VERSION}."

0 commit comments

Comments
 (0)