Update test.yml

This commit is contained in:
Alvaro Muñoz
2024-04-18 21:48:40 +02:00
committed by GitHub
parent a4cf78b9ed
commit bd4f158b22

View File

@@ -9,9 +9,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Find codeql
id: find-codeql
uses: github/codeql-action/init@aa93aea877e5fb8841bcb1193f672abf6e9f2980
with:
token: ${{ secrets.SECLAB_TOKEN }}
fetch-depth: 0
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 test run ql/test