GithubHelp home page GithubHelp logo

step-shrinkwrap-security-audit's Introduction

Node security shrinkwrap audit

This step will send the shrinkwrap file to nodesecurity.io. If any vulnerable modules are found, than this step will fail.

Requirements

  • Node.js

Example

This example will run the step using the default settings:

build:
    steps:
        - shrinkwrap-security-audit

It is also possible to use a different shrinkwrap path:

build:
    steps:
        - shrinkwrap-security-audit:
        	shrinkwrap-path: src/npm-shrinkwrap.json

It is also possible to ignore advisories for modules:

build:
    steps:
        - shrinkwrap-security-audit:
            ignore: "qs=https://nodesecurity.io/advisories/28,qs=https://nodesecurity.io/advisories/29"

What's new

Switched api call to api.nodesecurity.io. Output has also been improved showing the path of the module that has the vulnerability. Example output:

2 vulnerabilities/issues detected:

Title:    Denial-of-Service Extended Event Loop Blocking
Module:   qs
version:  0.6.6
Patched:  >= 1.x
Path:     request > qs
Advisory: https://nodesecurity.io/advisories/28

Title:    Denial-of-Service Memory Exhaustion
Module:   qs
version:  0.6.6
Patched:  >= 1.x
Path:     request > qs
Advisory: https://nodesecurity.io/advisories/29

Options

  • shrinkwrap-path (optional) The path to the shrinkwrap file. Defaults to ./npm-shrinkwrap.json.
  • ignore (optional) Comma separated list of advisories to ignore. The list is formatted as: moduleA=advisoryURL, moduleB=advisoryURL

TODO

TODO

License

The MIT License (MIT)

Changelog

2.0.2

  • updatd examples and hints (avoiding a \n issue)

2.0.1

  • fix: ignore parameter (problem: partially passed in run.sh)

2.0.0

  • add ignore support

1.1.0

  • update api call to api.nodescurity.io

1.0.0

  • Initial release.

step-shrinkwrap-security-audit's People

Contributors

flenter avatar gilbode avatar hatchan avatar

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.