Export security test results
Export security test results of a specific pipeline execution.
After a successful pipeline scan execution, you can view results in the Vulnerabilities tab of the pipeline execution window.
You can export scan results in three ways:
Export as CSV from the Vulnerabilities tab: Instantly download scan results in CSV format.
Export as PDF or CSV from the Dashboard: Open the Pipeline Execution Summary Dashboard to download results in PDF or CSV format.
Automated export via pipeline: Configure a pipeline with a Run step to automatically generate and email reports.
Export as CSV from the Vulnerabilities tab
In the Vulnerabilities tab of a pipeline execution, select Download CSV to instantly export the scan results in CSV format.

Export as PDF or CSV from the Dashboard
To export scan results from the Dashboard, you need to go to the Pipeline Execution Summary Dashboard. You can find the dashboard by navigating to the Dashboards section in your Harness account or you can also access the dashboard by clicking on the View in Dashboard option in the Vulnerabilities tab.

Once you are on the dashboard, you need to filter the results by your pipeline execution ID. To get the execution ID, go to your pipeline execution, and copy the ID from the URL. For example, in the URL https://app.harness.io/ng/account/ACCOUNT_ID/module/MODULE/orgs/ORG/projects/PROJECT/pipelines/PIPELINE/executions/EXECUTION_ID/pipeline, the value after /executions/ is the Execution ID.
From there, click the Options menu (top-right) and select Download (choose PDF or CSV).

Automated export using a pipeline Run step

You can configure your pipeline to automatically generate and email scan results using a Run step that interacts with the Harness API.
Prerequisites
Harness API Key: Refer to Add and Manage API Keys. Store this API key securely as a Harness Secret.
Dashboard ID of the Pipeline Execution Summary Dashboard:
Navigate to the STO Pipeline Execution Summary Dashboard.
Obtain the Dashboard ID from the dashboard URL, e.g.,
https://app.harness.io/ng/account/ACCOUNT/dashboards/folder/shared/view/30442. In this URL, the ID is30442.
Configure the Run step
Create a pipeline variable named
TOKENand reference the stored Harness API key as a secret.
Click to view full size image Add a Run step after your security scan steps.
Configure the step with:
Image:
curlimages/curlShell:
Sh
Use the following script, replacing
<YOUR_DASHBOARD_ID>andexample@harness.io:
Last updated
Was this helpful?