-
Notifications
You must be signed in to change notification settings - Fork 4
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
Critical Severity #62
Conversation
@@ -500,6 +501,7 @@ CxSAST thresholds enabled: ${config.sastConfig.vulnerabilityThreshold}`); | |||
if (config.sastConfig.vulnerabilityThreshold) { | |||
this.log.info(`CxSAST fail build for new vulnerabilities enabled: ${config.sastConfig.failBuildForNewVulnerabilitiesEnabled}`); | |||
this.log.info(`CxSAST fail build for the following severity or greater: ${config.sastConfig.failBuildForNewVulnerabilitiesSeverity}`); | |||
this.log.info(`CxSAST critical threshold: ${formatOptionalNumber(config.sastConfig.criticalThreshold)}`); |
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 the condition when SAST is 9.6 or below it should not log Critical Threshold in the logs.
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.
While reading this we cannot check condition. As I discusses already with Fatima in UI CRITICAL dropdown and testbox will remain as it is for all SAST. Added information and warning message based on SAST version
Quality Gate failedFailed conditions |
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.
Approved
Changes
Critical severity feature for ADO plugin is supported.
Test Cases
Note - Test below cases with SAST 9.7,9.6,9.5 version
Case 1
Check below points
Case 2
Check below points
Case 3
Check below points
Case 4
Check below points
Case 5
Check below points
a. SAST critical severity results are above threshold. Results: 93. Threshold: 5
b. SAST high severity results are above threshold. Results: 29. Threshold: 3
c. SAST medium severity results are above threshold. Results: 179. Threshold: 2
d. SAST low severity results are above threshold. Results: 213. Threshold: 1
Case 6
Check below points
a. SAST critical severity results are above threshold. Results: 93. Threshold: 5
b. SAST high severity results are above threshold. Results: 29. Threshold: 3
c. SAST medium severity results are above threshold. Results: 179. Threshold: 2
d. SAST low severity results are above threshold. Results: 213. Threshold: 1
Case 7
Check below points
a. Project policy status: violated