KI-frontend update
* Add better npm audit to pipeline * pipeline will fail if vulneralabity is found higher then moderate
This commit is contained in:
parent
cd36d39fad
commit
bc1a079503
20
.drone.yml
20
.drone.yml
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user