Skip to content

Commit

Permalink
Enable Data Retention, PDF Report issue
Browse files Browse the repository at this point in the history
  • Loading branch information
swatiawate1 committed Apr 12, 2024
1 parent f59330c commit 15357f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/cx/restclient/ast/AstScaClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ public Results waitForScanResults() {
}

fileName = PDF_REPORT_NAME + "_" + now + "." + reportFormat.toLowerCase();
String pdfLink = SASTUtils.writePDFReport(scanReport, config.getReportsDir(), fileName, log);
if (reportFormat.toLowerCase().equals("pdf")) {
String pdfLink = SASTUtils.writePDFReport(scanReport, config.getReportsDir(), fileName, log);
scaResults.setScaPDFLink(pdfLink);
scaResults.setPdfFileName(fileName);
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/cx/restclient/sast/utils/LegacyClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ public long resolveProjectId() throws IOException {
}
} else {
projectId = projects.get(0).getId();
if(config.isEnableDataRetention()) {
setRetentionRate(projectId);
}
setIsNewProject(false);
log.info("Project already exists with ID {}", projectId);
}
Expand Down

0 comments on commit 15357f9

Please sign in to comment.