Skip to content

Commit

Permalink
AST-37667 send the agent to the results command (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamarleviCm authored May 9, 2024
1 parent e86bcb2 commit 01349d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/checkmarx/ast/wrapper/CxWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,12 @@ public Results results(@NonNull UUID scanId) throws IOException, InterruptedExce
.readValue(results(scanId, ReportFormat.json));
}

public Results results(@NonNull UUID scanId, String agent) throws IOException, InterruptedException, CxException {
return new ObjectMapper()
.readerFor(Results.class)
.readValue(results(scanId, ReportFormat.json, agent));
}

public String results(@NonNull UUID scanId, ReportFormat reportFormat)
throws IOException, InterruptedException, CxException {
return results(scanId, reportFormat, null);
Expand Down

0 comments on commit 01349d7

Please sign in to comment.