We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b891a77 commit 911a909Copy full SHA for 911a909
src/main/java/io/securecodebox/persistence/defectdojo/config/DefectDojoConfig.java
@@ -11,9 +11,13 @@ public class DefectDojoConfig {
11
@Getter
12
private final String apiKey;
13
14
- static DefectDojoConfig fromEnv(){
+ @Getter
15
+ private final String username;
16
+
17
+ public static DefectDojoConfig fromEnv(){
18
String url = System.getenv("DEFECTDOJO_URL");
- String username = System.getenv("DEFECTDOJO_USERNMAE");
- 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);
22
}
23
0 commit comments