Add new Persistence-Provider Hook to Import Scan Results into OWASP DefectDojo#300
Add new Persistence-Provider Hook to Import Scan Results into OWASP DefectDojo#300
Conversation
Product Names are infered by the Scans / ScheduledScans name, or if set by a special label.
- Optiimize Imports - Replace Getter/Setter with lombok - Remove unused methods
This lets us better control the fields of the test. E.g. the description and the timestamps
Encoding it again will mess with the signatures
|
Ok, I got to say I'm a bit confused with code climate here. |
|
@J12934 I think it's because this method call a method of a proxy object. You should just remove it and use scan.getProductName() directly in your code. Also there is a lot of loop and if statement that increase complexity. And I agree, 5 in complexity is a little bit low :D |
| dependencies { | ||
| implementation 'io.kubernetes:client-java:10.0.0' | ||
|
|
||
| implementation 'io.securecodebox:defectdojo-client:0.0.7-SNAPSHOT' |
There was a problem hiding this comment.
We should reference here a released version instead of a snapshot version.
There was a problem hiding this comment.
Yes 👍
I planned to do this later after this initial merge once we're fairly certain that the API of the client is stable.
...dojo/src/main/java/io/securecodebox/persistence/strategies/VersionedEngagementsStrategy.java
Show resolved
Hide resolved
...dojo/src/main/java/io/securecodebox/persistence/strategies/VersionedEngagementsStrategy.java
Outdated
Show resolved
Hide resolved
|
@J12934 I saw that it's merged now! 👍 |
This PR adds a new Hook which imports raw results of scans into DefectDojo.
For more details check out the hooks readme: https://github.com/secureCodeBox/secureCodeBox/blob/feature/defect-dojo/hooks/persistence-defectdojo/README.md
You can test out this pr by using the official DefectDojo Demo instance at: https://demo.defectdojo.org/
See DefectDojo docs for the credentials: https://defectdojo.readthedocs.io/en/latest/
To test out the pr with the demo instance, you can install the hook like the following: