diff --git a/xray/commands/scan/scan.go b/xray/commands/scan/scan.go index 0a84fa2de..aede0df29 100644 --- a/xray/commands/scan/scan.go +++ b/xray/commands/scan/scan.go @@ -267,7 +267,7 @@ func (scanCmd *ScanCommand) Run() (err error) { cveList := cveListFromVulnerabilities(flatResults) multiScanId := "" // Also empty for audit thirdPartyApplicabilityScan := false - workingDirs := []string{(*scanCmd).spec.Files[0].Pattern} + workingDirs := []string{scanCmd.spec.Files[0].Pattern} scanResults.JasError = runJasScannersAndSetResults(scanResults, cveList, scanCmd.serverDetails, workingDirs, multiScanId, thirdPartyApplicabilityScan) }