Windsurf
The Harness SAST and SCA extension for Windsurf enables you to shift security further left by identifying secrets and vulnerabilities as you write code, helping you resolve issues before they become backlog tickets.
Features
Harness SAST and SCA for Windsurf provides:
- SAST: Advanced static analysis to identify security vulnerabilities in your code
- SCA (Software Composition Analysis): Dependency vulnerability scanning to detect vulnerable open-source packages
- Secrets Detection: Pre-commit checks to identify secrets, API keys, and credentials before they're committed
- Real-time Analysis: Get instant feedback on security issues as you code
- Integration with Qwiet AI by Harness: View detailed results and manage findings in the
Qwiet AI by Harnessdashboard
Language support and requirements
Harness SAST and SCA for Windsurf currently:
- Supports the analysis of JavaScript, TypeScript, Python, C/C++, C#, Go, Java, PHP, Ruby.
- Requires the use of a workstation running Linux, macOS, or Windows.
Dependencies
Before proceeding with this extension, ensure that your workstation meets the prerequisites for using Harness SAST and SCA.
The extension will automatically download and install the latest version of the Harness SAST and SCA CLI for you. This will not affect the system version of the CLI (if you have it installed); these two versions will be maintained in parallel.
Ensure that you've added
slandnodeorpythonto your systemPATHvariable.
Installation
To install Harness SAST and SCA for Windsurf, obtain the extension by downloading it from the VSX Marketplace (Windsurf is compatible with VS Code extensions).
Alternatively, you can download it from Windsurf by opening the Extensions pane, search for Harness SAST and SCA, and click on Install.
Usage
Step 1: Authenticate your machine
The Harness SAST and SCA extension for Windsurf will leverage the information contained in your local configuration file (created when you installed the Harness SAST and SCA CLI) to authenticate your machine.
To authenticate your newly installed extension:
-
Click the Connect to Qwiet AI by Harness icon in your left-hand navigation bar to begin the process of authenticating with Qwiet AI by Harness.
-
Log into Qwiet AI by Harness when prompted (if necessary, create an account first).
-
Return to Windsurf and verify that your organization and user information are displayed in the topmost window of the left navigation bar.
Step 2: Open your project
-
In Windsurf, open the project you want scanned by Harness SAST and SCA.
-
Click the Harness SAST and SCA icon in the left-hand navigation bar to launch the extension.
-
If prompted, authenticate with Qwiet AI by Harness (if you're already authenticated, you'll see your User Profile information displayed instead).
Step 3: Access the extension's functionality via the command palette
You can find all of the extension's functionality under the Command Palette (open using Command + Shift + P for macOS or Control + Shift + P for Linux/Windows):
| Option | Description |
|---|---|
| Analyze | Analyze your project |
| Connect | Connect your extension with your Qwiet AI by Harness account and organization |
| Contact Support | Launch your email client to contact Qwiet AI by Harness Support |
| Fetch Latest Scan Results | Get latest scan results |
| Focus on Assigned to Me View | Bring the Assigned to Me view into focus |
| Focus on Help & Support View | Bring the Help & Support view into focus |
| Focus on OSS Vulnerabilities View | Bring the OSS Vulnerabilities view into focus |
| Focus on Project Configuration View | Bring the Focus on Project Configuration view into focus |
| Focus on Secrets View | Bring the Secrets view into focus |
| Focus on User Profile View | Bring the User Profile view into focus |
| Focus on Vulnerabilities View | Bring the Vulnerabilities view into focus |
| Open Documentation | Open the documentation for the extension in a new browser window |
| Open Project Configuration | Open the project configuration/settings page |
| Pre Commit Check | Identify secrets present in your project |
| View: Show Harness SAST and SCA | Brings the extension-related windows into focus |