From b78dc2c1565f5e962a84795854dc563230f05a12 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Fri, 20 Mar 2026 11:48:51 +0100 Subject: [PATCH] ci: update codeql workflow Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- .github/workflows/codeql.yml | 37 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a4ab5da..07ce72d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -5,46 +5,41 @@ on: branches: - 'master' - 'releases/v*' - paths: - - '.github/workflows/codeql.yml' - - 'dist/**' - - 'src/**' pull_request: - paths: - - '.github/workflows/codeql.yml' - - 'dist/**' - - 'src/**' permissions: actions: read contents: read security-events: write +env: + NODE_VERSION: "24" + jobs: analyze: runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - language: - - javascript-typescript steps: - name: Checkout uses: actions/checkout@v6 + - + name: Enable corepack + run: | + corepack enable + yarn --version + - + name: Set up Node + uses: actions/setup-node@v6 + with: + node-version: ${{ env.NODE_VERSION }} - name: Initialize CodeQL uses: github/codeql-action/init@v4 with: - languages: ${{ matrix.language }} - config: | - paths: - - src - - - name: Autobuild - uses: github/codeql-action/autobuild@v4 + languages: javascript-typescript + build-mode: none - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v4 with: - category: "/language:${{matrix.language}}" + category: "/language:javascript-typescript"