Repository navigation
52 lines (44 loc) · 1.46 KB
/
Copy pathcodeql.yml
File metadata and controls
52 lines (44 loc) · 1.46 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
46
47
48
49
50
51
52
# =============================================================================
# CodeQL Security Analysis — Integrisight.ai
# =============================================================================
# Runs GitHub CodeQL SAST on Python (backend) and JavaScript/TypeScript
# (frontend). Scheduled weekly and on every push/PR to main.
# =============================================================================
name: "CodeQL Security Analysis"
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 6 * * 1' # Weekly on Monday at 06:00 UTC
permissions:
contents: read
security-events: write
jobs:
analyze:
name: "CodeQL — ${{ matrix.language }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [python, javascript-typescript]
include:
- language: python
source-root: src/backend
- language: javascript-typescript
source-root: src/frontend
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
source-root: ${{ matrix.source-root }}
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"