For the complete documentation index, see llms.txt. This page is also available as Markdown.

Open Source Vulnerabilities (OSV) step configuration

Scan code repositories with OSV

You can scan your code repositories using Open Source Vulnerabilities (OSV) and ingest your results into Harness STO. OSV supports a variety of languages and lockfiles.

Important notes for running OSV scans in STO

Root access requirements

For more information

OSV step settings for STO scans

The recommended workflow is to add an OSV step to a Security or Build stage and then configure it as described below.

Scan

Scan Mode

Scan Configuration

Target

Type

Target and Variant Detection

Name

Variant

Ingestion

Ingestion File

Log Level

Additional CLI flags

Use this field to run the osv scanner with flags such as:

--lockfile=/path/to/your/package-lock.json --lockfile=/path/to/another/Cargo.lock

With these flags, the osv scanner scans vulnerabilities in the two specified lockfiles.

Fail on Severity

Settings

Additional Configuration

Advanced settings

Configure OSV as a Built-in Scanner

The OSV scanner is available as a built-in scanner in STO. Configuring it as a built-in scanner enables the step to automatically perform scans using the free version without requiring any licenses. Follow these steps to set it up:

  1. Search for SCA in the step palette or navigate to the Built-in Scanners section and select the SCA step.

  2. Select OSV from the list of scanners.

  3. Expand the Additional CLI Flags section if you want to configure optional CLI flags.

  4. Click Add Scanner to save the configuration.

The scanner will automatically use the free version, detect scan targets, and can be further configured by clicking on the step whenever needed.

Proxy settings

YAML pipeline example

If you copy and paste the following example, make sure you update the placeholders for your project, Git connector, and build infrastructure.

Last updated

Was this helpful?