Is your feature request related to a problem? Please describe.
Say suppose, user has written following snippet for the image registry url in FROM command by leveraging the ARG/ENV variable
ARG foo_image=xyzz.web.com/reg/foo ARG foo_version=latest FROM $foo_image:$foo_version
The following rule can't extract the variable value to match the rule. Is there any direct way or alternate solution to look for variable references and use its value while evaluating the rule?
warn_latest_tag[msg] { docker.froms[from] val := split(from, ":") contains(val[1], image_tag_list[_]) msg = sprintf("%s: Do not use latest tag with image (%s). More info: %s", [check03, from, l.get_url(check03)]) }
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.