File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -470,7 +470,22 @@ func getTargetResultsToCompare(cmdResults, resultsToCompare *results.SecurityCom
470470 return
471471}
472472
473+ func scaIndependentScans (scans []utils.SubScanType ) bool {
474+ for _ , scan_type := range scans {
475+ if (scan_type != utils .SecretsScan && scan_type != utils .SastScan && scan_type != utils .IacScan ) {
476+ return false
477+ }
478+ }
479+ return true
480+ }
481+
473482func detectScanTargets (cmdResults * results.SecurityCommandResults , params * AuditParams ) {
483+
484+ if scaIndependentScans (params .ScansToPerform ()) {
485+ cmdResults .NewScanResults (results.ScanTarget {Target : params .workingDirs [0 ]})
486+ return
487+ }
488+
474489 for _ , requestedDirectory := range params .workingDirs {
475490 if ! fileutils .IsPathExists (requestedDirectory , false ) {
476491 log .Warn ("The working directory" , requestedDirectory , "doesn't exist. Skipping SCA scan..." )
You can’t perform that action at this time.
0 commit comments