Add npm audit to pipelines. Add trivy scan to release.

This commit is contained in:
Hendrik Belitz
2026-02-07 11:31:26 +01:00
parent f34d24f7b6
commit 290549d3a4
3 changed files with 21 additions and 1 deletions
+3
View File
@@ -21,6 +21,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Security audit
run: npm audit --audit-level=high
- name: Run type checking
run: npm run check
+4
View File
@@ -21,6 +21,10 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Security audit
run: npm audit --audit-level=high
- name: Run linting
run: npm run lint
check:
+14 -1
View File
@@ -62,7 +62,20 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker images
- name: Build Docker image
run: docker build -t openreception/open-reception:${{ github.ref_name }} .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: "openreception/open-reception:${{ github.ref_name }}"
format: "table"
exit-code: "1"
ignore-unfixed: true
vuln-type: "os,library"
severity: "CRITICAL,HIGH"
- name: Push Docker images
run: npm run docker:build-and-push
- name: Create Release Archive