Skip to content

Commit d6ea8f1

Browse files
committed
Malicious code scanner
1 parent 313a4a8 commit d6ea8f1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

jas/runner/jasrunner.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,6 @@ func AddJasScannersTasks(params JasRunnerParams) error {
7373
errorsCollection = errors.Join(errorsCollection, generalError)
7474
}
7575

76-
if slices.Contains(params.ScansToPerform, utils.MaliciousCodeScan) {
77-
if generalError := addJasScanTaskForModuleIfNeeded(params, utils.MaliciousCodeScan, runMaliciousScan(&params)); generalError != nil {
78-
// Scan task addition failure should not impact the other scanners tasks addition, therefore we accumulate the errors and return the overall error at the end.
79-
errorsCollection = errors.Join(errorsCollection, generalError)
80-
}
81-
}
82-
8376
if !runAllScanners {
8477
// Binary scan only supports secrets and contextual scans.
8578
return errorsCollection

0 commit comments

Comments
 (0)