-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.32 KB
/
Copy pathsecurity-audit.yml
File metadata and controls
52 lines (43 loc) · 1.32 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
name: Security Audit
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 18 * * 0' # Weekly Sunday 02:00 SGT (18:00 UTC Sunday)
jobs:
npm-audit:
name: Dependency Vulnerability Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node 24
uses: actions/setup-node@v5
with:
node-version: '24'
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm ci
- name: Run npm audit
# Remaining 2 moderate CVEs: esbuild <=0.24.2 (GHSA-67mh-4wv8-2f99) via
# vite <=6.4.1. Fix requires npm audit fix --force → vite@8 (breaking
# migration). Build-time only — not bundled into the served static app.
# All high and critical CVEs are resolved.
run: npm audit --audit-level=high
api-audit:
name: AI Proxy Dependency Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node 24
uses: actions/setup-node@v5
with:
node-version: '24'
- name: Install API proxy dependencies
working-directory: api
run: npm install
- name: Run npm audit on API proxy
working-directory: api
run: npm audit --audit-level=high