-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SCA Support #116
SCA Support #116
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we create a new class of HttpClient to accomodate the changes required for the support of SCA?
int status = response.getResponseCode(); | ||
|
||
JSONObject json = (JSONObject) response.getResponseBodyAsJSON(); | ||
|
||
if (status == HttpsURLConnection.HTTP_CREATED) { | ||
if (status == HttpsURLConnection.HTTP_CREATED || status == 200) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dont we have a constant for 200 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah we have, making the change.
|
||
@Override | ||
public String getType() { | ||
return "Sca"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not SCA ? Conpare it with SAST
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we were using the "/api/v4/Scans/Sca" API to execute the scan. So, taken the "Sca" from there.
https://jira02.hclpnp.com/browse/ASA-6458