False Positive - DS0017 - Update should always be followed by install - Heredoc problem? #9334
Closed
mastacheata
started this conversation in
False Detection
Replies: 2 comments
-
|
@nikpivkin can you take a look? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Track #9340 |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
IDs
AVD-DS-0017
Description
I get a false-positive for AVD-DS0017
The instruction 'RUN <package-manager> update' should always be followed by '<package-manager> install' in the same RUN statement.The Dockerfile in question has both of these commands within the same RUN block, but the individual commands are separated only by newlines within a heredoc block. If I add a ; or && in between the commands the scanner properly identifies the commands and doesn't report the issue.
It appears there is a problem with how multiple commands inside a heredoc block are counted.
Reproduction Steps
Minimal Dockerfile:
Minimal no-False-Positive-Dockefile:
Target
Container Image
Scanner
Misconfiguration
Target OS
No response
Debug Output
Version
Checklist
-f jsonthat shows data sources and confirmed that the security advisory in data sources was correctBeta Was this translation helpful? Give feedback.
All reactions