django-DefectDojo: Snyk report not getting uploaded

Bug description

gets invalid format error on uploading snyk json report

Steps to reproduce Steps to reproduce the behavior:

  1. Go to Engagement
  2. Import Snyk report
  3. Invalid format error is thrown

Expected behavior

It should upload successfully

Deployment method (select with an X)

  • Kubernetes
  • Docker
  • setup.bash / legacy-setup.bash

Environment information

  • Operating System: [CentOS 7]
  • DefectDojo version: 68339f6: Merge pull request #1449 from Maffooch/dev [2019-08-05 11:02:03 -0500]

Sample scan files

text.json.zip

Screenshots

image

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (12 by maintainers)

Most upvoted comments

Hey @praveendvd I forgot I will be out for some of Monday, so I fixed the issue today. Checkout #1481 to see the fixes. Would you allow me to include the new scan file in the sample-scan repo for future testing?

Hi @Maffooch i verified the fix and its working perfectly thank you so much for looking into this , that too on a weekend. Enjoy your vacation and feel free to use the scan report as sample.

@praveendvd PR #1467 has not been merged yet. Checkout the branch and try it. This may be of help https://help.github.com/en/articles/checking-out-pull-requests-locally