mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
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:
parent
c3f8af5636
commit
8a982e88cd
1 changed files with 16 additions and 16 deletions
|
@ -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'
|
Loading…
Reference in a new issue