chore: Enhance CI workflow with dependency audits and update package versions
CI / skip-ci-check (push) Successful in 1m27s
CI / skip-ci-check (pull_request) Successful in 1m26s
CI / lint-and-type-check (pull_request) Has been cancelled
CI / python-lint (pull_request) Has been cancelled
CI / test-backend (pull_request) Has been cancelled
CI / build (pull_request) Has been cancelled
CI / secret-scanning (pull_request) Has been cancelled
CI / dependency-scan (pull_request) Has been cancelled
CI / sast-scan (pull_request) Has been cancelled
CI / workflow-summary (pull_request) Has been cancelled
CI / lint-and-type-check (push) Successful in 2m5s
CI / python-lint (push) Successful in 1m51s
CI / test-backend (push) Successful in 2m38s
CI / build (push) Failing after 2m23s
CI / secret-scanning (push) Successful in 1m40s
CI / dependency-scan (push) Successful in 1m32s
CI / sast-scan (push) Successful in 2m46s
CI / workflow-summary (push) Successful in 1m25s

This commit updates the CI workflow to include steps for auditing dependencies in both the admin and viewer frontends, ensuring that vulnerabilities are identified and addressed. Additionally, it updates the `package-lock.json` and `package.json` files to reflect the latest versions of `vite` and other dependencies, improving overall project stability and security. These changes contribute to a more robust development environment and maintain code quality.
This commit is contained in:
Tanya
2026-01-07 13:04:01 -05:00
parent b6a9765315
commit f038238a69
6 changed files with 277 additions and 137 deletions
+32 -2
View File
@@ -79,6 +79,12 @@ jobs:
cd admin-frontend
npm ci
- name: Audit admin-frontend dependencies
run: |
cd admin-frontend
npm audit --audit-level=moderate || true
continue-on-error: true
- name: Run ESLint (admin-frontend)
run: |
cd admin-frontend
@@ -90,6 +96,12 @@ jobs:
cd viewer-frontend
npm ci
- name: Audit viewer-frontend dependencies
run: |
cd viewer-frontend
npm audit --audit-level=moderate || true
continue-on-error: true
- name: Type check (viewer-frontend)
run: |
cd viewer-frontend
@@ -173,6 +185,12 @@ jobs:
apt-get update && apt-get install -y postgresql-client
pip install --no-cache-dir -r requirements.txt
- name: Audit Python dependencies
run: |
pip install --no-cache-dir pip-audit
pip-audit --desc || true
continue-on-error: true
- name: Run backend tests
run: |
export PYTHONPATH=$(pwd)
@@ -194,6 +212,12 @@ jobs:
cd admin-frontend
npm ci
- name: Audit admin-frontend dependencies
run: |
cd admin-frontend
npm audit --audit-level=moderate || true
continue-on-error: true
- name: Build admin-frontend
run: |
cd admin-frontend
@@ -206,10 +230,16 @@ jobs:
cd viewer-frontend
npm ci
- name: Generate Prisma Client
- name: Audit viewer-frontend dependencies
run: |
cd viewer-frontend
npx prisma generate
npm audit --audit-level=moderate || true
continue-on-error: true
- name: Generate Prisma Clients
run: |
cd viewer-frontend
npm run prisma:generate:all
- name: Build viewer-frontend
run: |