Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Security Audit

# SEC-022: automated dependency vulnerability scanning. Runs `pnpm audit`
# against production dependencies for both workspaces on every push/PR so a
# newly disclosed high/critical advisory fails CI instead of going unnoticed.

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
audit-server:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.15.0
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
cache-dependency-path: server/pnpm-lock.yaml
- name: Install dependencies
working-directory: server
run: pnpm install --frozen-lockfile
- name: Audit production dependencies
working-directory: server
run: pnpm run security:audit

audit-client:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.15.0
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
cache-dependency-path: client/pnpm-lock.yaml
- name: Install dependencies
working-directory: client
run: pnpm install --frozen-lockfile
- name: Audit production dependencies
working-directory: client
run: pnpm run security:audit
13 changes: 11 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"e2e": "playwright test"
"e2e": "playwright test",
"security:audit": "pnpm audit --prod --audit-level=high"
},
"dependencies": {
"@tanstack/react-query": "^5.102.7",
Expand All @@ -20,7 +21,7 @@
"d3-force": "^3.0.0",
"framer-motion": "^12.42.2",
"lucide-react": "^1.25.0",
"next": "16.2.10",
"next": "^16.2.11",
"react": "19.2.4",
"react-dom": "19.2.4",
"tailwind-merge": "^3.6.0",
Expand All @@ -46,5 +47,13 @@
"tailwindcss": "^4",
"typescript": "^5",
"vitest": "^4.1.11"
},
"pnpm": {
"overrides": {
"sharp": ">=0.35.0",
"postcss": ">=8.5.18",
"nanoid": ">=3.3.18",
"browserslist": ">=4.28.7"
}
}
}
Loading
Loading