KI-frontend update

* Add better npm audit to pipeline
* pipeline will fail if vulneralabity is found higher then moderate
This commit is contained in:
Nikolai 2024-02-11 11:52:11 +01:00
parent cd36d39fad
commit bc1a079503
1 changed files with 20 additions and 0 deletions

View File

@ -22,6 +22,26 @@ steps:
- npm ci
- npm run lint
---
kind: pipeline
type: docker
name: audit
trigger:
event:
- push
- pull_request
branch:
- main
steps:
- name: audit
image: node:20
commands:
- npm install -g better-npm-audit
- better-npm-audit audit --production --level=moderate
---
kind: pipeline
type: docker