This package has been deprecated

Author message:

Use npm-audit-reporter-teamcity package (https://www.npmjs.com/package/npm-audit-reporter-teamcity) instead: Node Security Platform service was shut down in Sep 2018 - https://blog.npmjs.org/post/175511531085/the-node-security-platform-service-is-shutting

nsp-reporter-teamcity

0.3.1 • Public • Published

nsp reporter for TeamCity

Generates TeamCity inspections from nsp report Demo report

Installation

  1. Install packages
npm i -D nsp nsp-reporter-teamcity

or, in case of yarn

npm i -D nsp nsp-reporter-teamcity nsp-preprocessor-yarn
  1. Add npm scripts to run checks locally and in a CI server, e.g.:
"nsp": "nsp check --preprocessor yarn",
"nsp:ci": "nsp check --reporter teamcity --preprocessor yarn"

(just drop --preprocessor yarn in case of npm)

  1. Configure build step in TeamCity e.g. Command Line runner with script to install dependencies and run checks:
yarn
yarn nsp:ci

Configuration

Put nsp.conf.json config file in a project root directory to override any of the dafault values:

{
  "nspInspectionTypeId": "nsp-security-inspection",
  "nspInspectionName": "NSP security inspection",
  "nspInspectionCategory": "security",
  "npsInspectionSeverity": "WARNING"
}

Package Sidebar

Install

npm i nsp-reporter-teamcity

Weekly Downloads

0

Version

0.3.1

License

MIT

Unpacked Size

184 kB

Total Files

19

Last publish

Collaborators

  • cyberskunk