-
Notifications
You must be signed in to change notification settings - Fork 138
[atomic scan] Get image name in atomic scanner #1190
Comments
Currently I don't believe we leak that information into the container? |
There is (meta)data with the image itself which could help atomic scanners to implement different use cases. How I am achieving that right now is
If we can provide an interface for atomic scanners (say via |
@navidshaikh do you want only on the image name ? |
@navidshaikh and you want all this before the scan is run correct? |
Labels part can be achieved, if image name can be retrieved.
Correct. Basically, a way to access that information in the atomic scanner itself. For eg: My use case is, write an atomic scanner which reads |
Issue projectatomic#1190 asks for an enhancement to atomic scan where the scanner could figure out the image|container inspect information prior to the scan. We do this now by writing a file in the scanout/ dir. The file is JSON formatted and could be ingested by a scanner that needed that type of information. The path should bexi /scanout/inspect_info.json. Signed-off-by: baude <bbaude@redhat.com>
I am writing an atomic scanner for a use case where the scanner needs to know the
image_name
being processed.Now, I get the image name by explicitly setting an env variable while invoking the
atomic scan
command likewhat's the better way to get
image_name
without explicitly have to ask for providing env var along with atomic scan command?The text was updated successfully, but these errors were encountered: