Skip to content
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

Conversation

vishalhcl-5960
Copy link

@CLAassistant
Copy link

CLAassistant commented Nov 9, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Author

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) {

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 ?

Copy link
Author

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";

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

Copy link
Author

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.

@vishalhcl-5960 vishalhcl-5960 merged commit d998a8a into HCL-TECH-SOFTWARE:SCA-Support Nov 9, 2023
1 check failed
vishalhcl-5960 added a commit that referenced this pull request Nov 20, 2023
ASA-6458
Enhance Jenkins Plugin to support SAST-SCA separation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants