Skip to content

Commit 313a4a8

Browse files
committed
Malicious code scanner
1 parent 1851fc7 commit 313a4a8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

jas/runner/jasrunner.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ func addJasScanTaskForModuleIfNeeded(params JasRunnerParams, subScan utils.SubSc
107107
return
108108
}
109109
if params.ConfigProfile != nil {
110-
// This code section is related to CentralizedConfig integration in CI Next.
111110
log.Debug(fmt.Sprintf("Using config profile '%s' to determine whether to run %s scan...", params.ConfigProfile.ProfileName, jasType))
112111
enabled := false
113112
switch jasType {
@@ -117,8 +116,6 @@ func addJasScanTaskForModuleIfNeeded(params JasRunnerParams, subScan utils.SubSc
117116
enabled = params.ConfigProfile.Modules[0].ScanConfig.SastScannerConfig.EnableSastScan
118117
case jasutils.IaC:
119118
enabled = params.ConfigProfile.Modules[0].ScanConfig.IacScannerConfig.EnableIacScan
120-
case jasutils.MaliciousCode:
121-
enabled = params.ConfigProfile.Modules[0].ScanConfig.MaliciousScannerConfig.EnableMaliciousScan
122119
case jasutils.Applicability:
123120
// In Applicability scanner we must check that Sca is also enabled, since we cannot run CA without Sca results
124121
enabled = params.ConfigProfile.Modules[0].ScanConfig.ContextualAnalysisScannerConfig.EnableCaScan && params.ConfigProfile.Modules[0].ScanConfig.ScaScannerConfig.EnableScaScan

0 commit comments

Comments
 (0)