checkmarx-ltd / Cx-Client-Common

3 stars 12 forks source link

SCA feature break-the-build implemented #145

Closed umeshwaghode closed 3 years ago

umeshwaghode commented 3 years ago

Description

  1. Prints Policy Evaluations
  2. Determines if any policy is violated and if any violated policy requires build to break
  3. Policy evaluation API requires reportId. Added function for the same.
  4. Enhanced ScanSummary to propagate policy violation and break the build to the plugin 5.Some plugin use different function to print policy violations , enhanced same.

References

1853

Testing

  1. Tested SCA scan that violates policy with break the build
  2. Tested SCA scan that violates policy in more than one policy but one has break the build
  3. Tested SCA scan that does violate any SCA policy
  4. Tested that policy evaluation and display happens only when config.getEnforcePolicyViolations is enabled

Checklist