chore(ci): ajoute un audit de sécurité des dépendances (npm audit, pip-audit)

This commit is contained in:
Valentin
2026-09-17 12:25:15 +02:00
parent 7913518c4b
commit f5cac1c2a8
2 changed files with 23 additions and 5 deletions
+20 -5
View File
@@ -36,13 +36,13 @@ jobs:
node-version: 24
cache: npm
cache-dependency-path: apps/frontend/package-lock.json
- run: npm ci
- run: npm ci
working-directory: apps/frontend
- run: npm run build
working-directory: apps/frontend
test:
security-audit:
needs: build
runs-on: ubuntu-latest
steps:
@@ -52,7 +52,22 @@ jobs:
node-version: 24
cache: npm
cache-dependency-path: apps/frontend/package-lock.json
- run: npm ci
- run: npm ci
working-directory: apps/frontend
- run: npm audit --audit-level=high
working-directory: apps/frontend
test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
cache-dependency-path: apps/frontend/package-lock.json
- run: npm ci
working-directory: apps/frontend
- run: npm test -- --watch=false
working-directory: apps/frontend
@@ -70,7 +85,7 @@ jobs:
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# deploy:
# runs-on: ubuntu-latest
# steps: