Giter VIP home page Giter VIP logo

npm-audit-checker's Introduction

npm-audit-checker

Overview

This tool checks the output from npm audit --summary --json or yarn audit --summary --json and then fails based on the severity provided.

If there are vulnerabilities reported on or above the threshold passed the tool will exit with a non zero error code, which can be used in CI to fail builds.

Background / Motivation

The npm audit tool currently doesn't allow a way of defining which severity of vulnerabilities should be considered acceptable out of the various levels defined for npm security advisories - namely info | low | moderate | high | critical.

You might not care about info or low but want to fail CI jobs if a moderate or above is found, which used to be possible with nsp using the --cvss-threshold option.

Usage

- pip install npm-audit-checker
- npm audit --summary --json | npm-audit-checker

Options

usage: npm-audit-checker [-h] [-t {low,moderate,high,critical}] [-d] [-v]

npm audit checker CLI

optional arguments:
  -h, --help            show this help message and exit
  -t {low,moderate,high,critical}, --threshold {low,moderate,high,critical}
                        Severity to fail on or above
  -d, --debug           Enable debug output
  -v, --version         Show the installed version of npm-audit-checker

npm-audit-checker's People

Contributors

danielwhatmuff avatar

Watchers

 avatar

npm-audit-checker's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.