From 8a982e88cd5e0f6ba58ee969091a39fe9f32c35e Mon Sep 17 00:00:00 2001 From: Arkadii Yakovets <2201626+arkid15r@users.noreply.github.com> Date: Thu, 27 Jun 2024 00:25:05 -0700 Subject: [PATCH] github/workflows: run CodeQL analysis for both JavaScript and TypeScript (#6541) ### Describe Your Changes Enables CodeQL TypeScript analysis. ### Checklist The following checks are **mandatory**: - [x] My change adheres [VictoriaMetrics contributing guidelines](https://docs.victoriametrics.com/contributing/). Signed-off-by: Arkadii Yakovets --- ...lysis-js.yml => codeql-analysis-js-ts.yml} | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) rename .github/workflows/{codeql-analysis-js.yml => codeql-analysis-js-ts.yml} (60%) diff --git a/.github/workflows/codeql-analysis-js.yml b/.github/workflows/codeql-analysis-js-ts.yml similarity index 60% rename from .github/workflows/codeql-analysis-js.yml rename to .github/workflows/codeql-analysis-js-ts.yml index 4bb0f7f23..491b6503f 100644 --- a/.github/workflows/codeql-analysis-js.yml +++ b/.github/workflows/codeql-analysis-js-ts.yml @@ -1,22 +1,27 @@ -name: "CodeQL - JS" +name: 'CodeQL JS/TS' on: push: - branches: [master, cluster] + branches: + - cluster + - master paths: - - "**.js" + - '**.js' + - '**.ts' + - '**.tsx' pull_request: - # The branches below must be a subset of the branches above - branches: [master, cluster] + branches: + - cluster + - master paths: - - "**.js" - schedule: - - cron: "30 18 * * 2" + - '**.js' + - '**.ts' + - '**.tsx' concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true - + jobs: analyze: name: Analyze @@ -26,11 +31,6 @@ jobs: contents: read security-events: write - strategy: - fail-fast: false - matrix: - language: ["javascript"] - steps: - name: Checkout repository uses: actions/checkout@v4 @@ -38,9 +38,9 @@ jobs: - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: - languages: ${{ matrix.language }} + languages: javascript-typescript - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 with: - category: "javascript" + category: 'language:js/ts'