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 <ark@victoriametrics.com>
This commit is contained in:
Arkadii Yakovets 2024-06-27 00:25:05 -07:00 committed by GitHub
parent c3f8af5636
commit 8a982e88cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,22 +1,27 @@
name: "CodeQL - JS" name: 'CodeQL JS/TS'
on: on:
push: push:
branches: [master, cluster] branches:
- cluster
- master
paths: paths:
- "**.js" - '**.js'
- '**.ts'
- '**.tsx'
pull_request: pull_request:
# The branches below must be a subset of the branches above branches:
branches: [master, cluster] - cluster
- master
paths: paths:
- "**.js" - '**.js'
schedule: - '**.ts'
- cron: "30 18 * * 2" - '**.tsx'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
analyze: analyze:
name: Analyze name: Analyze
@ -26,11 +31,6 @@ jobs:
contents: read contents: read
security-events: write security-events: write
strategy:
fail-fast: false
matrix:
language: ["javascript"]
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -38,9 +38,9 @@ jobs:
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v3 uses: github/codeql-action/init@v3
with: with:
languages: ${{ matrix.language }} languages: javascript-typescript
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3 uses: github/codeql-action/analyze@v3
with: with:
category: "javascript" category: 'language:js/ts'