Correctly parse and report local image names - #1216
Merged
Merged
Conversation
A recent commit[1] added the ability to analyze local images by adding the `docker-daemon:` string before the image name. While this works from an analysis point of view, it yields the incorrect string for the container name in Tern's reporting. As a fix, this new commit removes the `docker-daemon` string when instantiating a new OCIImage or DockerImage object, yielding the correct image name in the reports. [1]tern-tools@40b981c Resolves tern-tools#1214 Resolves tern-tools#1212 Signed-off-by: Rose Judge <rjudge@vmware.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A recent commit[1] added the ability to analyze local images by adding the
docker-daemon:string before the image name. While this works from an analysis point of view, it yields the incorrect string for the container name in Tern's reporting. As a fix, this new commit removes thedocker-daemonstring when instantiating a new OCIImage or DockerImage object, yielding the correct image name in the reports.[1]40b981c
Resolves #1214
Resolves #1212