Skip to content

Commit 911a909

Browse files
committed
Fix fromEnv call, and add missing username to config
1 parent b891a77 commit 911a909

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/main/java/io/securecodebox/persistence/defectdojo/config/DefectDojoConfig.java

+7-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ public class DefectDojoConfig {
1111
@Getter
1212
private final String apiKey;
1313

14-
static DefectDojoConfig fromEnv(){
14+
@Getter
15+
private final String username;
16+
17+
public static DefectDojoConfig fromEnv(){
1518
String url = System.getenv("DEFECTDOJO_URL");
16-
String username = System.getenv("DEFECTDOJO_USERNMAE");
17-
return new DefectDojoConfig(url, username);
19+
String username = System.getenv("DEFECTDOJO_USERNAME");
20+
String apiKey = System.getenv("DEFECTDOJO_APIKEY");
21+
return new DefectDojoConfig(url, apiKey, username);
1822
}
1923
}

0 commit comments

Comments
 (0)