-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
defect dojo verified status is now setup from configuration #985
base: main
Are you sure you want to change the base?
defect dojo verified status is now setup from configuration #985
Conversation
@@ -66,7 +66,7 @@ public void uploadDependencyTrackFindings(final String token, final String engag | |||
.addPart("file", inputStreamBody) | |||
.addPart("engagement", new StringBody(engagementId, ContentType.MULTIPART_FORM_DATA)) | |||
.addPart("scan_type", new StringBody("Dependency Track Finding Packaging Format (FPF) Export", ContentType.MULTIPART_FORM_DATA)) | |||
.addPart("verified", new StringBody("true", ContentType.MULTIPART_FORM_DATA)) | |||
.addPart(Boolean.toString(verifyFindings), new StringBody("true", ContentType.MULTIPART_FORM_DATA)) |
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.
The key must remain "verified" and the value should be updated to verifyFindings
.
Currently it's set as true only.
@@ -173,7 +173,7 @@ public void reimportDependencyTrackFindings(final String token, final String eng | |||
.addPart("file", inputStreamBody) | |||
.addPart("engagement", new StringBody(engagementId, ContentType.MULTIPART_FORM_DATA)) | |||
.addPart("scan_type", new StringBody("Dependency Track Finding Packaging Format (FPF) Export", ContentType.MULTIPART_FORM_DATA)) | |||
.addPart("verified", new StringBody("true", ContentType.MULTIPART_FORM_DATA)) | |||
.addPart(Boolean.toString(verifyFindings), new StringBody("true", ContentType.MULTIPART_FORM_DATA)) |
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.
Same here, the key must remain "verified" and the value should be updated to verifyFindings
. Currently it's set as true only.
You can retain the original author's credit by adding them via |
f78de37
to
860b137
Compare
I've amended the commit and reworded it with a signature from @Malaydewangan09. The correction is also made in this amend, ensuring co-authorship will appears correctly in main branch |
80a5770
to
41d5607
Compare
Co-Authored-By: unknown <[email protected]> Signed-off-by: Mathieu Scolas <[email protected]>
41d5607
to
d3c52cd
Compare
I can't find a way to make it works with DCO step. Is it possible that it is caused by co-author @Malaydewangan09 as he never signed-off this repo ? |
Description
Added a new configurable property to manage the "Verified" flag in DefectDojo integration. This allows users to control whether or not the "Verified" flag should be set when uploading findings to DefectDojo.
Port from DependencyTrack/dependency-track#4273
Addressed Issue
Close DependencyTrack/hyades#1601
Additional Details
Thanks for Malaydewangan09 for the original work. Due to the fork of https://github.com/DependencyTrack/dependency-track and https://github.com/DependencyTrack/hyades-apiserver, I was not able to preserve author name in commits
Checklist