2023-10-24 05:19:58 -04: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 00:50:29 -05:00
|
|
|
uses: github/codeql-action/init@v3
|
2023-10-24 05:19:58 -04:00
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
2023-10-24 10:38:18 -04:00
|
|
|
config: |
|
|
|
|
paths:
|
|
|
|
- src
|
2023-10-24 05:19:58 -04:00
|
|
|
-
|
|
|
|
name: Autobuild
|
2023-12-14 00:50:29 -05:00
|
|
|
uses: github/codeql-action/autobuild@v3
|
2023-10-24 05:19:58 -04:00
|
|
|
-
|
|
|
|
name: Perform CodeQL Analysis
|
2023-12-14 00:50:29 -05:00
|
|
|
uses: github/codeql-action/analyze@v3
|
2023-10-24 05:19:58 -04:00
|
|
|
with:
|
|
|
|
category: "/language:${{matrix.language}}"
|