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

Ingest from Checkmarx GitHub Action

Ingest data from Checkmarx GitHub Action.

You can use the Checkmarx CxFlow GitHub Action with Harness to perform security scans and ingest the scan results into Harness STO. This document details how to configure your pipeline to run the Checkmarx CxFlow GitHub Action for scanning and ingest the results using the Checkmarx step in STO.

Pipeline steps

  1. GitHub Actions Plugin: Executes the Checkmarx CxFlow GitHub Action to perform the scan.

  2. Checkmarx Step: Ingests the scan results from the GitHub Actions Plugin step and feeds them into STO.

Shared path configuration

Since this process involves ingestion, configure a shared path in the Overview section of your stage:

  1. Navigate to Overview of your stage.

  2. Under Shared Path, add /shared/scan_results/.

This directory will store the SARIF scan results from the GitHub Action, which the Checkmarx step will use for ingestion.

Configure GitHub Actions Plugin

  1. Add the GitHub Actions Plugin to the Security or Build stage of your pipeline.

  2. Set the Uses field to checkmarx-ts/checkmarx-cxflow-github-action@v1.6.

  3. Configure key-value pairs under Settings to define scan parameters.

    • project: ProjectName

    • team: /Server/team/name

    • scanners: sca

    • checkmarx_url: <+secrets.getValue("my-checkmarx-url")>

    • checkmarx_username: username

    • checkmarx_password: <+secrets.getValue("my-checkmarx-password")>

    • checkmarx_client_secret: <+secrets.getValue("my-checkmarx-client-secret")>

    • sca_username: username

    • sca_password: <+secrets.getValue("my-sca-password")>

    • sca_tenant: cxintegrations

    • break_build: false

For a complete list of supported input parameters, refer to the CxFlow GitHub Action documentation.

Configure Checkmarx step for ingestion

  1. Add the Checkmarx step to the pipeline.

  2. Set Scan Mode to Ingestion.

  3. Set Scan Configuration to Default.

  4. Configure Name and Variant as per the Checkmarx scan configuration documentation.

  5. Set Ingestion File to the path of the SARIF scan results file stored in /shared/scan_results/.

For additional configurations, refer to the Checkmarx scan configuration documentation.

Sample pipeline YAML

Here’s the sample pipeline YAML, which you can copy and use

Last updated

Was this helpful?