|
35 | 35 | working-directory: backend |
36 | 36 | run: npm run lint |
37 | 37 |
|
| 38 | + - name: Audit backend dependencies |
| 39 | + working-directory: backend |
| 40 | + run: npm audit --audit-level=high |
| 41 | + continue-on-error: false |
| 42 | + |
| 43 | + - name: Upload backend audit report |
| 44 | + if: always() |
| 45 | + run: npm audit --json --audit-level=none > /tmp/backend-audit.json 2>&1 || true |
| 46 | + working-directory: backend |
| 47 | + |
| 48 | + - name: Upload backend audit artifact |
| 49 | + if: always() |
| 50 | + uses: actions/upload-artifact@v4 |
| 51 | + with: |
| 52 | + name: backend-npm-audit |
| 53 | + path: /tmp/backend-audit.json |
| 54 | + |
38 | 55 | frontend-build: |
39 | 56 | name: Frontend Build |
40 | 57 | runs-on: ubuntu-latest |
|
62 | 79 | working-directory: frontend |
63 | 80 | run: npm run lint |
64 | 81 |
|
| 82 | + - name: Check SRI integrity attributes on CDN assets |
| 83 | + run: bash scripts/check-sri.sh frontend/index.html |
| 84 | + |
| 85 | + - name: Audit frontend dependencies |
| 86 | + working-directory: frontend |
| 87 | + run: npm audit --audit-level=high |
| 88 | + continue-on-error: false |
| 89 | + |
| 90 | + - name: Upload frontend audit report |
| 91 | + if: always() |
| 92 | + run: npm audit --json --audit-level=none > /tmp/frontend-audit.json 2>&1 || true |
| 93 | + working-directory: frontend |
| 94 | + |
| 95 | + - name: Upload frontend audit artifact |
| 96 | + if: always() |
| 97 | + uses: actions/upload-artifact@v4 |
| 98 | + with: |
| 99 | + name: frontend-npm-audit |
| 100 | + path: /tmp/frontend-audit.json |
| 101 | + |
65 | 102 | contract-build: |
66 | 103 | name: Contract Build |
67 | 104 | runs-on: ubuntu-latest |
|
0 commit comments