2023-10-28 14:27:29 +08:00
|
|
|
name: codeql
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
env:
|
|
|
|
NODE_VERSION: 20
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
-
|
|
|
|
name: Set up Node
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
|
|
-
|
|
|
|
name: Initialize CodeQL
|
2023-12-14 06:08:08 +08:00
|
|
|
uses: github/codeql-action/init@v3
|
2023-10-28 14:27:29 +08:00
|
|
|
with:
|
|
|
|
languages: javascript-typescript
|
|
|
|
-
|
|
|
|
name: Autobuild
|
2023-12-14 06:08:08 +08:00
|
|
|
uses: github/codeql-action/autobuild@v3
|
2023-10-28 14:27:29 +08:00
|
|
|
-
|
|
|
|
name: Perform CodeQL Analysis
|
2023-12-14 06:08:08 +08:00
|
|
|
uses: github/codeql-action/analyze@v3
|
2023-10-28 14:27:29 +08:00
|
|
|
with:
|
|
|
|
category: "/language:javascript-typescript"
|