GithubHelp home page GithubHelp logo

luhring / grype-vscode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anchore/grype-vscode

0.0 2.0 0.0 197 KB

Grype vulnerability check plugin for Visual Studio Code

License: Apache License 2.0

TypeScript 67.30% CSS 30.52% HTML 1.25% JavaScript 0.93%

grype-vscode's Introduction

Grype for Visual Studio Code

GitHub release License: Apache-2.0 Slack Invite

The Grype extension for Visual Studio Code makes it easy to know when your project is using dependencies that have known security vulnerabilities.

Grype Extension Demo

IMPORTANT: Windows support is not yet available. This extension supports only macOS and Linux.

This extension brings Grype into your Visual Studio Code experience. For the raw CLI capabilities, be sure to check out Grype.

Installation

To install the extension, open the Extensions view, search for "grype" to filter results, and select the Grype extension authored by Anchore, Inc.

There is no need to install the Grype binary before installing this extension. This extension maintains its own instance of the Grype binary, so as not to interfere with any other installation of Grype.

Overview of features

Automatic background scanning

The extension watches for changes to files in order to proactively scan your project for vulnerabilities.

The current count of vulnerabilities is displayed in the status bar at the bottom of the window.

Grype status bar

Automatic scanning is enabled by default. You can disable it for your workspace using either of these methods:

  1. Click on Grype's status bar item, and select the action "Disable Automatic Scanning".
  2. Launch the Command Palette, and run the command "Grype: Disable Automatic Scanning".

You can enable automatic scanning again using either the status bar item or the Command Palette.

Vulnerability report

Get a list of your project's vulnerabilities in a sortable table, which sorts by severity (highest to lowest) by default.

Learn more about a vulnerability by clicking the link in the Vulnerability column.

The report is updated automatically as scans complete.

Grype Vulnerability Report

See vulnerabilities from a manifest file

The extension adds a CodeLens provider that allows you to see how many vulnerabilities the current file is contributing to your project's total count of vulnerabilities.

Clicking the vulnerability count opens the full Vulnerability Report.

Grype CodeLens

Manual scanning

You can always initiate a vulnerability scan manually. You can do this using either of these methods:

  1. Click on Grype's status bar item, and select the action "Scan Now".
  2. Launch the Command Palette, and run the command "Grype: Scan Now".

Contributing to this project

To set up a local development environment:

  1. Make sure you have VS Code installed. (If not, you can download it from here.)
  2. Clone this repository.
  3. Change the working directory to the repository root.
  4. Run npm install.
  5. Open the repository in Visual Studio Code.
$ git clone [email protected]:anchore/grype-vscode.git
[...]
$ cd grype-vscode
$ npm install
[...]
$ code .

To run the extension from your local code, start debugging. (Press F5, or go to the Run menu and select "Start Debugging".)

After a few seconds, a second VS Code window should open, with the words "Extension Development Host" in the window title. In this second window, the VS Code extension is installed and running! You can use this second window to open any project like you would normally.

For more information on developing Visual Studio Code Extensions, check out https://code.visualstudio.com/api.

grype-vscode's People

Contributors

luhring avatar rossturk avatar wagoodman avatar

Watchers

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