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

Custom Ingest step

Ingest third-party scanner results into a Continuous Delivery stage using SARIF or custom JSON

The Custom Ingest step ingests results from any third-party scanner. Harness Security Testing Orchestration (STO) supports two generic data formats:

  • SARIF (Static Analysis Results Interchange Format) is an open data format supported by many scan tools, especially tools available as GitHub Actions. You can ingest SARIF 2.1.0 data from any tool that supports this format. If your scanner can export to SARIF, use this format. Go to Ingest SARIF scan results to configure SARIF ingestion.

  • Harness STO supports a custom JSON format that is useful for ingesting data from scanners that have no integration in STO and that cannot publish to SARIF. Go to Ingest results from unsupported scanners to configure JSON ingestion.

Use a supported scanner when one exists

The Custom Ingest step is intended for scanners that have no supported integration in STO. Use the documented workflow for supported scanners. Go to Supported Security Scanners for the list of scanners STO supports.


What you will learn from this topic


Before you begin

Review the following before you add a Custom Ingest step:


The following topics cover scanner setup in Security Testing Orchestration:


Custom Ingest step settings for STO scans

The step settings are grouped below. This topic lists the setting names. Go to Custom Ingest step for SARIF and JSON scan results for the field descriptions maintained with the Security Testing Orchestration step reference.

Scan

The scan settings on this step are:

  • Scan mode

  • Scan Configuration

Target

Type

The target type of the scanned object. You can ingest data for the following target types:

  • Repository: Ingest scan results for a code repository.

  • Container image: Ingest scan results for the layers, libraries, and packages in a container image.

  • Instance: Ingest scan results for a running application.

  • Configuration: Ingest scan results for your cloud environment, generated by gathering configuration data through the cloud provider's APIs.

Name

Variant

Ingestion

The ingestion setting on this step is Ingestion File.

Log Level, CLI flags, and Fail on Severity

The log and failure settings on this step are:

  • Log Level

  • Additional CLI flags

  • Fail on Severity

Additional Configuration

Go to Custom Ingest step for SARIF and JSON scan results for the fields under Additional Configuration.

Advanced settings

Go to Custom Ingest step for SARIF and JSON scan results for Conditional Execution, Failure Strategy, Looping Strategy, and Policy Enforcement.


Proxy settings

Go to Custom Ingest step for SARIF and JSON scan results for the proxy variables on this step.


Custom Ingest pipeline examples

The following topics describe end-to-end workflows for ingesting SARIF and JSON data:


Sample pipeline

The following pipeline writes a custom JSON results file in a Run step, then ingests that file with a Custom Ingest step:

Sample YAML

Next steps

Last updated

Was this helpful?