Replies: 3 comments 1 reply
-
Hi @rittneje ! AVD-DS-0001 warns against the use of the |
Beta Was this translation helpful? Give feedback.
0 replies
-
@nikpivkin Yes, it's supposed to, but as I mentioned doesn't work if Without build arg, implicit latestFROM ubuntu
Without build arg, explicit latestFROM ubuntu:latest
With build arg, implicit latestARG REGISTRY
FROM ${REGISTRY}/ubuntu
With build arg, explicit latestARG REGISTRY
FROM ${REGISTRY}/ubuntu:latest
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Track #8274 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
We have Dockerfiles that reference build args to construct the registry prefix of the image.
Scanning such Dockerfiles never triggers avd-ds-0001.
Desired Behavior
The check ought to work even if we are using a build arg.
Actual Behavior
Trivy reports nothing.
Reproduction Steps
Target
Filesystem
Scanner
Misconfiguration
Output Format
None
Mode
Standalone
Debug Output
Operating System
docker container
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions