0.4.0 • Published 3 years ago
npm-audit-reporter-teamcity v0.4.0
npm audit reporter for TeamCity
Generates TeamCity inspections from the npm audit report

Installation
- Install packages
npm i npm-audit-reporter-teamcity- Add npm scripts to run checks locally and in a CI server, e.g.:
"audit:ci": "npm audit --json|npm-audit-reporter-teamcity"- Configure build step in TeamCity e.g. Command Line runner with script to install dependencies and run checks:
npm install
npm run audit:ciConfiguration
Put npm-audit-reporter.conf.json config file in a project root directory to override any of the dafault values:
{
"inspectionTypeId": "npm-audit-security-inspection",
"inspectionName": "NPM audit security inspection",
"inspectionCategory": "security",
"inspectionSeverity": "WARNING",
}- To debug provide truthy
DEBUGenv variable (e.g.DEBUG=1 npm run audit:ci)