GithubHelp home page GithubHelp logo

shellz-n-stuff / snyk-to-sarif-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hunt3rkillerz/snyk-to-sarif-js

0.0 0.0 0.0 29 KB

Converts Snyk JSON output to the SARIF format

JavaScript 100.00%

snyk-to-sarif-js's Introduction

Snyk-To-Sarif-JS

A node module that can be used to convert Snyk projects to the SARIF format. This tool is inspired by https://github.com/garethr/snyk-to-sarif. However, it is designed to support multi-project Snyk outputs and also is built in NodeJS to be inline with other Snyk integrations and the CLI itself.

Setup

The following command will install the application.

npm install -g snyk-to-sarif

Quick Start

The intended method of using the tool is as follows.

snyk test --json | snyk-to-sarif -o output.sarif

This allows the tool to easily work with the native Snyk CLI with a clear SARIF artifact produced at the end that can be uploaded and processed by any SARIF compatible tool.

Usage

Usage of the tool follows the following format:

snyk test --json | snyk-to-sarif -o output.sarif

Optional Flags

-o, --output <Output> Name of the file to output to (SARIF FORMAT), if not specified the content will be printed to screen (To allow for piping).

-i, --input <Input> Path to a snyk json file to read as input, note this take precendence over piped input.

-v, --verbose Prints additional debug information.

-h, --help Prints the help prompt

snyk-to-sarif-js's People

Contributors

hunt3rkillerz 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.