8000 Use proper DefectDojo importer for nuclei and wpscan scans by J12934 · Pull Request #646 · secureCodeBox/secureCodeBox · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hooks/persistence-defectdojo/hook/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repositories {
dependencies {
implementation 'io.kubernetes:client-java:12.0.0'

implementation 'io.securecodebox:defectdojo-client:0.0.19-SNAPSHOT'
implementation 'io.securecodebox:defectdojo-client:0.0.20-SNAPSHOT'

implementation group: 'org.springframework', name: 'spring-web', version: '5.3.9'
implementation 'com.fasterxml.jackson.core:jackson-core:2.12.4'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ public enum ScanNameMapping {
SSLYZE("sslyze", ScanType.SSLYZE_3_JSON_SCAN),
TRIVY("trivy", ScanType.TRIVY_SCAN),
GITLEAKS("gitleaks", ScanType.GITLEAKS_SCAN),
NIKTO("nikto", ScanType.NIKTO_SCAN),
NIKTO("nikto", ScanType.NIKTO_SCAN),
NUCLEI("nuclei", ScanType.NUCLEI_SCAN),
WPSCAN("wpscan", ScanType.WPSCAN),
GENERIC(null, ScanType.GENERIC_FINDINGS_IMPORT)
;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class DefectDojoFindingToSecureCodeBoxMapperTest {

@BeforeEach
public void setup(){
var config = new DefectDojoConfig("http://example.defectdojo.com", "placeholder", "placeholder");
var config = new DefectDojoConfig("http://example.defectdojo.com", "placeholder", "placeholder", 1000);
this.mapper = new DefectDojoFindingToSecureCodeBoxMapper(config, endpointService);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class VersionedEngagementsStrategyTest {

@BeforeEach
public void setup() throws Exception {
versionedEngagementsStrategy.config = new DefectDojoConfig("https://defectdojo.example.com", "<key>", "foobar");
versionedEngagementsStrategy.config = new DefectDojoConfig("https://defectdojo.example.com", "<key>", "foobar", 1000);

scan = new Scan();
scan.setApiVersion("execution.securecodebox.io/v1");
Expand Down
0