Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pkg/containerResolver/containerScanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"os/exec"
"path/filepath"
"runtime"
"strings"

"github.com/Checkmarx/containers-images-extractor/pkg/imagesExtractor"
"github.com/Checkmarx/containers-syft-packages-extractor/pkg/syftPackagesExtractor"
Expand Down Expand Up @@ -33,7 +34,7 @@ func (cr *ContainersResolver) Resolve(scanPath string, resolutionFolderPath stri
} else {
zerolog.SetGlobalLevel(zerolog.InfoLevel)
}
log.Debug().Msgf("Resolve func parameters: scanPath=%s, resolutionFolderPath=%s, images=%s, isDebug=%t", scanPath, resolutionFolderPath, images, isDebug)
log.Debug().Msgf("Resolve func parameters: scanPath=%s, resolutionFolderPath=%s, images=%s, isDebug=%t", scanPath, resolutionFolderPath, strings.Join(images, ","), isDebug)

// 0. validate input and create .checkmarx folder
checkmarxPath, err := validate(resolutionFolderPath)
Expand Down Expand Up @@ -72,7 +73,7 @@ func (cr *ContainersResolver) Resolve(scanPath string, resolutionFolderPath stri
}

//5. cleanup files generated folder
err = cleanup(resolutionFolderPath, outputPath, checkmarxPath)
err = cleanup(scanPath, outputPath, checkmarxPath)
if err != nil {
log.Err(err).Msg("Could not cleanup resources.")
return err
Expand Down
Loading