0

I am using trivy to do docker scanning and then saving the output into result.json file. Now I am trying to send the file to DefectDojo to visualize it there, how can I do that?

dur
  • 15,689
  • 25
  • 79
  • 125

1 Answers1

0

Go to "Products" , Select a product, in the "Findings" tab > "Import Scan Results"

or use API: create an engagement:

curl -X POST   "https://dojo:8080/api/v2/engagements/" -H "Authorization: Token <your token>"  -F "name=Test" -F "product=<Product ID>" -F "target_start=2022-06-14" -F "target_end=2022-06-14"

Import Scan:

 curl -X POST "https://dojo:8080/api/v2/import-scan/" -H  "accept: application/json" -H  "Content-Type: multipart/form-data"  -H "Authorization: Token <your token>" -F "minimum_severity=Info" -F "active=true" -F "verified=true" -F "scan_type=Trivy Scan" -F "close_old_findings=false" -F "push_to_jira=false" -F "file=@result.json" -F "product_name=Test" -F "scan_date=2022-06-14" -F "engagement_name=Test"
kasraorko
  • 1
  • 1