-
-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #1622 DefectDojo integration reimport enhancement - Part 2 #1738
Conversation
Frontend code change is now in DependencyTrack/frontend#179 |
LOGGER.debug("Found existing test Id: " + testId); | ||
if (testId.equals("")) { | ||
client.uploadDependencyTrackFindings(apiKey.getPropertyValue(), engagementId.getPropertyValue(), payload); | ||
} else { | ||
client.reimportDependencyTrackFindings(apiKey.getPropertyValue(), engagementId.getPropertyValue(), payload, testId); | ||
} | ||
} else if (Boolean.parseBoolean(globalReimportEnabled.getPropertyValue())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we merge the two branches of the if that perform REimport? The second one currently does not check for an empty test id.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point on make the code more readable - thank you. The change is now in @valentijnscholten
Signed-off-by: Sam Li2 <[email protected]> Signed-off-by: Sam Li2 <[email protected]>
…esponding frondend code change Signed-off-by: Sam Li2 <[email protected]> Signed-off-by: Sam Li2 <[email protected]>
…onstant DEFECTDOJO_REIMPORT_ENABLED Signed-off-by: Sam Li2 <[email protected]> Signed-off-by: Sam Li2 <[email protected]>
Signed-off-by: Sam Li2 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Let's get the frontend PR rebased, then we're ready to merge! 🚀
thanks @yangsec888 |
Add global reimport flag support per valentijnscholten suggestion. Note a separate PR on GUI will be sent in 'frontend' repo.