Skip to content

Commit

Permalink
execution of SCA scan if the OSO option is checked
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalhcl-5960 committed Feb 14, 2024
1 parent 420adb6 commit acaa792
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ public String createAndExecuteScan(String type, Map<String, String> params) {
HttpResponse response;
request_headers.put("Content-Type", "application/json");
request_headers.put("accept", "application/json");
String request_url = m_authProvider.getServer() + String.format(API_SCANNER, type);
String request_url;
if(type.equals(SASTConstants.STATIC_ANALYZER) && !params.containsKey(UPLOAD_DIRECT) && params.containsKey(OPEN_SOURCE_ONLY)) {
request_url = m_authProvider.getServer() + String.format(API_SCANNER, SCA);
} else {
request_url = m_authProvider.getServer() + String.format(API_SCANNER, type);
}
response = client.post(request_url,request_headers,params);

int status = response.getResponseCode();
Expand Down

0 comments on commit acaa792

Please sign in to comment.