-
Notifications
You must be signed in to change notification settings - Fork 63
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
Report with results of both SCA and SAST from Jenkins Plugin #117
base: march23-integration
Are you sure you want to change the base?
Conversation
@@ -1242,10 +1287,19 @@ private void mapSastConfiguration(Optional<SastConfig> sast, CxScanConfig scanCo | |||
} | |||
|
|||
|
|||
private void createScaReports(AstScaResults scaResults, File checkmarxBuildDir) { | |||
private void createScaReports(AstScaResults scaResults, File checkmarxBuildDir, @Nonnull FilePath workspace) { |
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.
i dont see use of new argument workspace in this method. Kindly check if it is required.
@@ -1498,6 +1552,20 @@ private CxScanConfig resolveConfiguration(Run<?, ?> run, DescriptorImpl descript | |||
} | |||
ret.setEnablePolicyViolations(enableProjectPolicyEnforcement); | |||
|
|||
if (!ret.isAstScaEnabled() && !ret.getSynchronous()) { |
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.
Please check if the condition should be && or ||
@@ -1004,7 +1045,7 @@ public void perform(@Nonnull Run<?, ?> run, @Nonnull FilePath workspace, @Nonnul | |||
if (osaResults != null && osaResults.isOsaResultsReady()) { | |||
createOsaReports(osaResults, checkmarxBuildDir); | |||
} else if (scaResults != null && scaResults.isScaResultReady()) { | |||
createScaReports(scaResults, checkmarxBuildDir); | |||
createScaReports(scaResults, checkmarxBuildDir, workspace); |
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.
Check if additional argument workspace is needed in this method.
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.
Please work on the review comments.
No description provided.