Skip to content

Commit

Permalink
remove dockerfile scan and scan only images
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Sep 27, 2023
1 parent 08562fc commit bc53591
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 85 deletions.
2 changes: 1 addition & 1 deletion xray/commands/scan/dockerscan.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (dsc *DockerScanCommand) mapDockerLayerToCommand() (layersMapping map[strin
layerHash := strings.TrimPrefix(layer.Digest, layerDigestPrefix)
layersMapping[layerHash] = services.DockerfileCommandDetails{LayerHash: layer.Digest, Command: formatCommand(layer)}
}
return dsc.mapDockerfileCommands(layersMapping)
return layersMapping, nil
}

func formatCommand(layer *image.Layer) string {
Expand Down
71 changes: 0 additions & 71 deletions xray/commands/scan/dockerscan_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions xray/commands/testdata/docker-scan/.dockerfile

This file was deleted.

0 comments on commit bc53591

Please sign in to comment.