Overview

WhiteSource Advise is an extension for Visual Studio Code, Visual Studio Codespaces, and GitHub Codespaces that is designed to empower developers with important, valuable information on security vulnerabilities concerning open-source components employed in their development projects.

WhiteSource Advise does the following:

Support for Languages and Package Managers 

WhiteSource Advise supports NPM and C#-based (SDK and non SDK-style) projects.

Note the following current limitations:

Prerequisites

Ensure the following:

Installing WhiteSource Advise 

To install WhiteSource Advise, do as follows:

  1. Start the editor.

  2. From the sidebar on the left, select Extensions. The Extensions panel is displayed.

  3. In the search bar on top, enter whitesource and press Enter. The WhiteSource Advise “widget” is displayed in the panel.

  4. In the WhiteSource Advise panel, click Install. The installation process begins. When the installation process is complete, you will receive a notification message.

Activating WhiteSource Advise

To activate WhiteSource Advise, do as follows:

  1. Ensure that you have completed all previous procedures on this page.

  2. Start the editor.

  3. Open View > Command Palette.

  4. In the Command Palette, enter whitesource.

  5. From the suggestion list, select WhiteSource: Activate WhiteSource Advise. The Activate WhiteSource Advise wizard begins.

  6. Enter your organizational email (the email domain must be licensed to use Advise), and click Enter.

  7. Enter your license key (see here for more information on how to obtain a license key), and click Enter.

  8. In the WhiteSource Advise was successfully activated notification, if you want the extension to remember the license key, click Yes.

Scanning for Security Vulnerabilities

There are two ways to scan for security vulnerabilities, scan your entire workspace or scan one or multiple folders within the workspace.

Enabling Scanning of devDependencies

If you want to enable the scanning of devDependencies, do as follows:

  1. From the sidebar on the left, select Extensions. The Extensions panel is displayed.

  2. In the search bar on top, enter whitesource and press Enter. The WhiteSource Advise “widget” is displayed in the panel.

  3. Click the Manage icon.

  4. In the popup that opens, click Extension Settings.

  5. Select the Include Dev Dependencies checkbox. WhiteSource Advise will start scanning devDependencies in addition to regular dependencies upon the next scan.

Automatically Scanning for Security Vulnerabilities

Once you have activated WhiteSource Advise, it automatically scans WhiteSource-supported projects in your entire workspace for open source security vulnerabilities whenever such projects are built.

If you do not want WhiteSource Advise to automatically scan your WhiteSource-supported projects, you can disable this functionality. Do as follows:

  1. From the sidebar on the left, select Extensions. The Extensions panel is displayed.

  2. In the search bar on top, enter whitesource and press Enter. The WhiteSource Advise “widget” is displayed in the panel.

  3. Click the Manage icon.

  4. In the popup that opens, click Extension Settings.

  5. Clear the Enable Automatic Scanning in Workspace checkbox. WhiteSource Advise will no longer automatically scan your workspace projects for vulnerabilities.

Manually Scanning for Security Vulnerabilities

Ensure your projects are built before you scan their associated folders with WhiteSource Advise.

Scanning a Workspace

To scan a workspace, do any of the following:

Scanning Folders Within a Workspace

To scan one or multiple folders within the workspace, do as follows:

  1. Select one or multiple folders from the Explorer pane.

  2. Right-click the folder (or a selection of folders) and from the context menu, click Scan folder(s) with WhiteSource Advise.

Reviewing Scan Results

After a scan is completed, a notification is displayed with informative statistics regarding the scan. These include the number of high, medium, and low severity vulnerabilities. To view more specific information regarding the vulnerability, click Show Problems inside the notification to open the Problems section. In the Problems section, for each vulnerability, the following details are displayed (note that some Problem descriptions are found on the same line):

Upgrading WhiteSource Advise

Upgrading When Auto Updating Extensions is Enabled

To upgrade the WhiteSource Advise extension when the Auto Updating Extensions option is enabled, do as follows:

  1. From the sidebar on the left, select Extensions. The Extensions panel is displayed.

  2. In the search bar on top, enter whitesource and press Enter. The WhiteSource Advise “widget” is displayed in the panel.

  3. Select the WhiteSource Advise extension, and click Reload Required.
    NOTE: If the Reload Required is not displayed, a new version is not available.

Upgrading When Auto Updating Extensions is Disabled

To upgrade the WhiteSource Advise extension when the Auto Updating Extensions option is disabled, do as follows:

  1. From the sidebar on the left, select Extensions. The Extensions panel is displayed.

  2. Click the three dots (“…”). The menu is displayed.

  3. Click Check for Extension Updates.

  4. In the search bar on top, enter whitesource and press Enter. The WhiteSource Advise “widget” is displayed in the panel.

  5. If an update is available to the extension, click the Update to… button.

Uninstalling WhiteSource Advise 

To uninstall the extension, do as follows: 

  1. From the sidebar on the left, select Extensions. The Extensions panel is displayed.

  2. In the search bar on top, enter whitesource and press Enter. The WhiteSource Advise “widget” is displayed in the panel.

  3. Select the WhiteSource Advise extension, and click Uninstall.