Skip to content

Add support for GitLab Dependency Scanning reports - #3534

Merged
madchap merged 6 commits into
DefectDojo:devfrom
personio:issue-3533-add-gitlab-dependency-scanner-report
Dec 29, 2020
Merged

madchap merged 6 commits into
DefectDojo:devfrom
personio:issue-3533-add-gitlab-dependency-scanner-report

Conversation

@macedogm

Copy link
Copy Markdown
Contributor

Fix #3533.
Basically the GitLab Dependency Scanning reports are quite similar to the SAST reports, except for:

  1. vuln['category'] is dependency_scanning.
  2. The analyzers used by GitLab don't provide the scanner_confidence property.

It seemed to make sense to create a new importer, despite the fact that the changes were only 2 compared to the current SAST importer. The changes might increase in the future.

Please let me know if this make sense or not. Best regards.

@macedogm

Copy link
Copy Markdown
Contributor Author

Two notes:

  1. I'm not really sure about the purpose and need of file dojo/fixtures/test_type.json.
  2. If the PR is merged, we need to update the docs to reflect the new importer.

@valentijnscholten

Copy link
Copy Markdown
Member

test_type.json is to populate the database table with the test types, this fixture is loaded by the initializer.
Can you rebase or merge dev, that will fix integration tests.

@macedogm

Copy link
Copy Markdown
Contributor Author

Rebased and all checks passed 👍🏻
Thanks for the help @valentijnscholten !

@valentijnscholten valentijnscholten added this to the 1.11.0 milestone Dec 28, 2020
@madchap

madchap commented Dec 28, 2020

Copy link
Copy Markdown
Contributor

@macedogm there is a conflict that got introduced by a recent merge. Could you please rebase from dev and append your test_json stanza with the following pk number? (190 normally). Thanks!

@madchap
madchap self-requested a review December 28, 2020 17:02
@macedogm

Copy link
Copy Markdown
Contributor Author

@madchap thanks for the note! PR rebased and conflict resolved.

@damiencarol damiencarol left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants