Skip to content

Commit

Permalink
fix: use other source-hint
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kotzbauer <[email protected]>
  • Loading branch information
ckotzbauer committed Jan 28, 2022
1 parent a93d296 commit bb68ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/syft/syft.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (s *Syft) ExecuteSyft(img kubernetes.ImageDigest) (string, error) {
return "", err
}

src, cleanup, err := source.New(filepath.Join("file:", imagePath), nil, nil)
src, cleanup, err := source.New(filepath.Join("docker-archive:", imagePath), nil, nil)
if err != nil {
logrus.WithError(fmt.Errorf("failed to construct source from input %s: %w", imagePath, err)).Error("Source-Creation failed")
return "", err
Expand Down

0 comments on commit bb68ee1

Please sign in to comment.