From 96e777293097548dc93de462d77c6ca452fd42f9 Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Fri, 9 Feb 2024 03:40:02 +0900 Subject: [PATCH] ci: improve CodeQL workflow - Set new language `javascript-typescript` (see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning#changing-the-languages-that-are-analyzed) - Remove useless Node.js setup --- .github/workflows/codeql.yml | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 895501df..8fb96684 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -28,38 +28,12 @@ jobs: strategy: fail-fast: false matrix: - language: ['javascript'] - node-version: [18] + language: ['javascript-typescript'] steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - - name: Get npm cache directory - id: npm-cache-dir - run: | - echo "::set-output name=dir::$(npm config get cache)" - - - name: Cache npm cache - uses: actions/cache@v3 - id: npm-cache - with: - path: ${{ steps.npm-cache-dir.outputs.dir }} - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - - - name: Install latest npm - run: npm install --global npm@latest - - - name: Install dependencies - run: npm ci - - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: