-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (39 loc) · 1.26 KB
/
Copy pathcodeql.yml
File metadata and controls
45 lines (39 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: CodeQL
# Static analysis for JavaScript across the extension, server, and Continuum
# plugin. Free for public repositories. Findings appear under the Security tab.
on:
push:
branches: [Master, master, main]
pull_request:
branches: [Master, master, main]
schedule:
# Weekly run catches new CVEs in unchanged code.
- cron: "37 7 * * 1"
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: Analyze JavaScript
# CodeQL is free for public repos only. Skip on private to avoid spurious
# failures while the repo is still being prepped.
if: github.event.repository.private == false || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ["javascript-typescript"]
steps:
- uses: actions/checkout@v4
- uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# Don't scan the generated bundle — it's vendored output from src/,
# not hand-written code.
paths-ignore: |
server/dist
**/node_modules
- uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"