Skip to content

Commit 971e8f8

Browse files
committed
feat(ci): Add support for .codeqlversion
1 parent bf11776 commit 971e8f8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.codeqlversion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.20.1

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ runs:
2626
CODEQL_HOME: ${{ github.workspace }}/codeql_home
2727
CODEQL_CLI_VERSION: ${{ inputs.codeql-cli-version }}
2828
run: |
29+
if [ -z "$CODEQL_CLI_VERSION" ]; then
30+
echo "No CodeQL CLI version specified. Reading from .codeqlversion file."
31+
CODEQL_CLI_VERSION=$(cat ./.codeqlversion)
32+
fi
33+
echo "Installing CodeQL CLI v${CODEQL_CLI_VERSION}."
34+
2935
mkdir -p $CODEQL_HOME
3036
echo "Change directory to $CODEQL_HOME"
3137
pushd $CODEQL_HOME

0 commit comments

Comments
 (0)