From 96abb193c76193ccf7799fd7acd6dae5b53ae736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alvaro=20Mu=C3=B1oz?= Date: Fri, 19 Apr 2024 11:39:03 +0200 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5efa1ae3dae..f8071c2986d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,11 +9,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Find codeql - id: find-codeql - uses: github/codeql-action/init@aa93aea877e5fb8841bcb1193f672abf6e9f2980 - with: - languages: javascript # does not matter + - name: Initialize CodeQL + id: init + run: | + # Take the most modern version + VERSION="$(find "${{ runner.tool_cache }}/CodeQL/" -maxdepth 1 -mindepth 1 -type d -print \ + | sort \ + | tail -n 1 \ + | tr -d '\n')" + + CODEQL="$VERSION/x64/codeql/" + "${CODEQL}"/codeql version --format=json + echo "${CODEQL}" >> $GITHUB_PATH - run: | - codeql pack download ql/lib codeql test run ql/test