diff --git a/pom.xml b/pom.xml index 715e16f..178030e 100644 --- a/pom.xml +++ b/pom.xml @@ -70,6 +70,10 @@ io.quarkus quarkus-hibernate-orm-panache + + io.quarkus + quarkus-smallrye-openapi + io.quarkus quarkus-junit5 diff --git a/src/main/java/com/redhat/pctsec/model/ScanRequest.java b/src/main/java/com/redhat/pctsec/model/ScanRequest.java index efd8069..e6a18cb 100644 --- a/src/main/java/com/redhat/pctsec/model/ScanRequest.java +++ b/src/main/java/com/redhat/pctsec/model/ScanRequest.java @@ -32,7 +32,7 @@ public class ScanRequest { { this.scmurl = new HashMap<>(); this.scmurl.put("repo", repo); - this.scmurl.put("ref", repo); + this.scmurl.put("ref", ref); } public void executeScan(){ if(this.brewBuild != null && !this.brewBuild.trim().isEmpty()){ diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 52a73c3..2cb4c25 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -21,6 +21,9 @@ #%dev.quarkus.kerberos.keytab-path= HTTP_osh-pct-security-tooling.apps.ocp-c1.prod.psi.redhat.com@IPA.REDHAT.COM.keytab #%dev.quarkus.kerberos.service-principal-name= HTTP/osh-pct-security-tooling.apps.ocp-c1.prod.psi.redhat.com@IPA.REDHAT.COM +#Always provide swagger ui +quarkus.swagger-ui.always-include=true + %stage.quarkus.openshift.name=osh %stage.quarkus.openshift.service-account=osh-wrapper-client-sa %stage.quarkus.openshift.labels.env=stage