-
Notifications
You must be signed in to change notification settings - Fork 28
45 lines (41 loc) · 1.33 KB
/
Copy pathcodeql.yml
File metadata and controls
45 lines (41 loc) · 1.33 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
# CodeQL static analysis — scans the JavaScript/JSX codebase (client + server)
# for security vulnerabilities and surfaces them under the repository's
# Security tab → "Code scanning alerts".
name: "CodeQL"
on:
push:
branches: [main, elusoc]
pull_request:
branches: [main, elusoc]
schedule:
# Weekly full scan (Sundays 01:30 UTC) so newly disclosed patterns are caught
# even when no code changes.
- cron: "30 1 * * 0"
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
# The codebase is JavaScript/JSX; the javascript-typescript pack covers
# both client (React/Vite) and server (Express).
language: ["javascript-typescript"]
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# JavaScript needs no compilation, so no build step is required.
build-mode: none
queries: security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"