Go Back | 简体中文

Visual Studio Code

Install Plugin

  • Option 1:Install from VS Marketplace

    In VS Code, open Extensions in the left sidebar -> enter "OpenSCA Xcheck" in the extension search box, click "Install"

    xcheck_market
  • Option 2:Download from OpenSCA Official Web Site

    • Download "OpenSCA-Xcheck.vsix" from the OpenSCA official website;
    • Open VS Code, open Extensions in the left sidebar -> more actions in the top bar of the extension -> "Install from VSIX" -> find and install "OpenSCA-Xcheck.vsix";
  • Option 3:Build from source code

    • Requirements:

      • node v18 and above
    • Clone the repository from github or gitee

    • Install vsce

      npm install --global @vscode/vsce
      
    • Package

      vsce package
      

Using the Plugin

Plugin Features

  • Start Scan: Click the "Run" button in the action bar to start scanning for vulnerabilities in the components of the current project.
  • Stop Scan: Click the "Stop" button in the action bar to stop the ongoing scan for vulnerabilities in the current project.
  • Clear Scan Results: Click the "Clean" button in the action bar to clear the scan results of the current project.
  • Connection Configuration: Click the "Test" button in the action bar to configure the platform URL and Token information. Click the "Test Connection" button to verify if the connection configuration is correct. Once the connection is successful, you can start scanning.
  • Settings: Click the "Setting" button in the action bar to view the settings related to OpenSCA Xcheck.
  • Instructions: Click the "Instructions" button in the action bar to view the user manual for OpenSCA Xcheck.
  • See More: Click the "See more" button in the action bar to visit opensca.xmirror.cn for more information about OpenSCA Xcheck.

xcheck_function

Plugin Execution Process

xcheck_flow

Running a Scan

Click on OpenSCA Xcheck to open the OpenSCA window. First, configure the server parameters in the configuration interface (refer to: Plugin Features - Settings), then click “Run” in the OpenSCA window (refer to: Plugin Features - Start Scan).

JetBrains IDEs

Installing the Plugin

  • Method 1: Install from the JetBrains Plugin Marketplace (Recommended)

    For example, in IntelliJ IDEA: go to File | Settings | Plugins | Marketplace, search for "OpenSCA Xcheck" in the search box, and click "Install".

    xcheck_market

  • Method 2: Download the plugin from the OpenSCA Platform and install it manually

    For example, in IntelliJ IDEA: drag the downloaded plugin package into the IDE.

  • Method 3: Download the source code and compile it yourself

    Open the downloaded source code in IntelliJ IDEA. Configure the runtime environment: JDK11. After Gradle imports dependencies and plugins, execute the buildPlugin task of the intellij plugin in Gradle. The built package will be located in the build/distributions directory of the project. Drag this package into the IDE to install it.

Using the Plugin

Plugin Features

  • Configuration: Click File | Settings | Other Settings | OpenSCA Setting or click the Setting button in the OpenSCA window to configure the server URL and Token in the configuration interface.
  • Test Connection: After configuring the server URL and Token in the OpenSCA configuration interface, click the Test Connection button to verify if the URL and Token are valid.
  • Run: Click the Run button in the OpenSCA window to perform a code assessment on the current project.
  • Stop: If a code assessment is ongoing for the current project, the Stop button will be enabled. Click the Stop button to end the current assessment task.
  • Clear: If the Xcheck sub-window in the OpenSCA window already has assessment results, click the Clean button to clear all results in the Xcheck sub-window.

xcheck_function

Plugin Execution Process

xcheck_flow

Running a Scan

Click View > Tool Windows > OpenSCA to open the OpenSCA window. First, configure the server parameters in the OpenSCA configuration interface (refer to: Plugin Features - Configuration), then click the "Run" button in the OpenSCA window (refer to: Plugin Features - Run).