2023-10-24 17:19:58 +08:00
|
|
|
name: codeql
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
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
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
language:
|
|
|
|
- javascript-typescript
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
-
|
|
|
|
name: Initialize CodeQL
|
2023-12-14 13:50:29 +08:00
|
|
|
uses: github/codeql-action/init@v3
|
2023-10-24 17:19:58 +08:00
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
2023-10-24 22:38:18 +08:00
|
|
|
config: |
|
|
|
|
paths:
|
|
|
|
- src
|
2023-10-24 17:19:58 +08:00
|
|
|
-
|
|
|
|
name: Autobuild
|
2023-12-14 13:50:29 +08:00
|
|
|
uses: github/codeql-action/autobuild@v3
|
2023-10-24 17:19:58 +08:00
|
|
|
-
|
|
|
|
name: Perform CodeQL Analysis
|
2023-12-14 13:50:29 +08:00
|
|
|
uses: github/codeql-action/analyze@v3
|
2023-10-24 17:19:58 +08:00
|
|
|
with:
|
|
|
|
category: "/language:${{matrix.language}}"
|