Uploading from a CI
We provide a simple convenience script for ad hoc scan imports to DefectDojo. It can be downloaded from here.
Prerequisites
Python3
the requests library
Environment variables to export
The script uses required configurable environment variables matching information specific to the DefectDojo instance being used. Please ensure these are set correctly for error-free usage:
Usage
Assuming you have a working installation of DefectDojo on your system and Python3 installed, if you haven't already, create a Product on DefectDojo with the name matching exactly the name of the project that will be scanned with the Meterian client.
From the project folder, launch the Meterian scan and produce a JSON report (the following example uses Meterian's dockerized client)
Then upload the findings to DefectDojo using our convenience script providing the path of the report to import as a parameter
If successful, the script will display a similar output
After successful execution, a new Engagement will be created on the fly and the results of the recent Meterian analysis will be imported as a Meterian Scan Test to it.
Last updated