Add DefectDojo auto create context#5971
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Signed-off-by: Martin Wrona <martin.wrona@digitecgalaxus.ch>
eb2e8cb to
e1bbec9
Compare
|
Frontend PR: DependencyTrack/frontend#1480 |
|
Great to see this added as it makes the Defect Dojo integration easier and better. There are some more parameters that can be provided with
Do you think this PR would a good opportunity to add these two? |
|
Sure I just need a bit more context about those settings. |
|
The The |
815710e to
4175ecb
Compare
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
f6c4ea7 to
5b5fbb4
Compare
Signed-off-by: Martin Wrona <martin.wrona@digitecgalaxus.ch>
5b5fbb4 to
d5f427c
Compare
|
@valentijnscholten I added the @nscuro what are your thoughts on that? |
|
Thank you for this PR. This has been on my wishlist for a long time. I propose using only the reimport-scan API. There is no need to use the import-scan API. As far as I know**,** the reimport-scan API is the best option for tool integration and CI/CD pipelines. This would reduce the complexity of the DD integration. The reimport-scan API offers additional options. Maybe a more generic mapping between project properties and API options would provide more flexibility. All properties with the prefix |
Description
Adds usage of DefectDojos
auto_create_contextimport api flag so that users don't have to build their own glue code to use this integration at scale.Global Configuration
Introduces 4 new global settings
defectdojo.autocreate.enabledfalsedefectdojo.autocreate.engagementNamedependencytrackdefectdojo.autocreate.productTypeNameDependency Trackdefectdojo.autocreate.deduplicationOnEngagementfalseProject Properties
Introduces 4 new project properties that allow to override product name, the global deduplicationOnEngagement, engagement and product type name
integrationsdefectdojo.autocreate.productNameSTRINGintegrationsdefectdojo.autocreate.engagementNameSTRINGintegrationsdefectdojo.autocreate.productTypeNameSTRINGintegrationsdefectdojo.autocreate.deduplicationOnEngagementtrueorfalse(defaults to global config if not set)BOOLEANUI Change:

Addressed Issue
Closes #1323
Additional Details
See https://docs.defectdojo.com/automation/api/api-v2-docs/#import
Checklist
- [ ] This PR fixes a defect, and I have provided tests to verify that the fix is effective- [ ] This PR introduces changes to the database model, and I have added corresponding update logic