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

View File

@ -22,6 +22,26 @@ steps:
- npm ci - npm ci
- npm run lint - 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 kind: pipeline
type: docker type: docker