fix(security): remediate audit vulnerabilities SEC-001 through SEC-023
This commit is contained in:
1 parent
dc88677169
commit
bd49fbc4a0
31 files changed
+867
-114
No files matched your search
@@ -0,0 +1,51 @@
|
||||
name: Security & Audit Pipeline
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main", "master", "develop" ]
|
||||
pull_request:
|
||||
branches: [ "main", "master" ]
|
||||
|
||||
jobs:
|
||||
audit-and-security:
|
||||
name: Security Scan & Dependency Audit
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'npm'
|
||||
|
||||
- name: Run Gitleaks to detect secrets
|
||||
uses: gitleaks/gitleaks-action@v2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Backend Security Audit
|
||||
run: |
|
||||
cd backend
|
||||
npm audit --audit-level=high
|
||||
|
||||
- name: Frontend Security Audit
|
||||
run: |
|
||||
cd frontend/application
|
||||
npm audit --audit-level=high
|
||||
|
||||
- name: Backend Build & Type Check
|
||||
run: |
|
||||
cd backend
|
||||
npm ci
|
||||
npm run build
|
||||
|
||||
- name: Frontend Build & Type Check
|
||||
run: |
|
||||
cd frontend/application
|
||||
npm ci
|
||||
npm run build
|
||||
Reference in new issue
Block a user