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
GitHub Actions Plugin: Executes the Checkmarx CxFlow GitHub Action to perform the scan.
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:
Navigate to Overview of your stage.
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
Add the GitHub Actions Plugin to the Security or Build stage of your pipeline.
Set the Uses field to
checkmarx-ts/checkmarx-cxflow-github-action@v1.6.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
Add the Checkmarx step to the pipeline.
Set Scan Mode to Ingestion.
Set Scan Configuration to Default.
Configure Name and Variant as per the Checkmarx scan configuration documentation.
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?