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

Report with results of both SCA and SAST from Jenkins Plugin #117

Open
wants to merge 3 commits into
base: march23-integration
Choose a base branch
from

Conversation

swatiawate1
Copy link
Collaborator

No description provided.

@@ -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) {
Copy link
Collaborator

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()) {
Copy link
Collaborator

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);
Copy link
Collaborator

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.

Copy link
Collaborator

@PravinGadankush PravinGadankush left a 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.

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.

2 participants