Skip to content

Commit

Permalink
Merge pull request #54 from Qualys/develop
Browse files Browse the repository at this point in the history
Github App for WAS
  • Loading branch information
qsadhav authored Jan 19, 2024
2 parents 46a793b + 8079e2d commit 439bcc5
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,14 @@ public void launchWebApplicationScan() {
logger.info("Qualys task - Started Launching web app scanning with WAS");
String scanId = service.launchScan();
if (scanId != null && !scanId.isEmpty()) {
String message1 = "Launching scan with 'WAIT_FOR_RESULT: " + waitForResult + "', 'INTERVAL: " + interval + " min', 'TIMEOUT: " + timeout + " min', 'AuthRecord: " + authRecord + "', 'OptionProfile: " + optionProfile + "'";
String message1 = "Launching scan with 'WAIT_FOR_RESULT: " + waitForResult + "'";
if (waitForResult) {
message1 += ", 'POLLING_INTERVAL: " + interval + " mins', 'TIMEOUT: " + timeout + " mins'";
}
if (this.cancelOptions) {
message1 += ", 'CANCEL_OPTION:" + cancelOptions + "', 'CANCEL_HOURS:" + cancelHours + " hrs'";
}
String message2 = "Scan successfully launched with scan id: " + scanId;
String message2 = "Scan successfully launched with scan id: " + scanId + " and scan name: " + scanName;
String message3 = "Please switch to WAS Classic UI and Check for report...";
String message4 = "To check scan result, please follow the url: " + portalServer + "/portal-front/module/was/#forward=/module/was/&scan-report=" + scanId;
logger.info(message1);
Expand Down Expand Up @@ -290,6 +293,8 @@ public void launchWebApplicationScan() {

Helper.dumpDataIntoFile(gson.toJson(data), fileName);
System.exit(1);
} else {
Helper.dumpDataIntoFile(gson.toJson(data), fileName);
}
} else {
Helper.dumpDataIntoFile(gson.toJson(data), fileName);
Expand Down

0 comments on commit 439bcc5

Please sign in to comment.