Replies: 1 comment
-
Files deleted across layers remain stored within the layer. You can confirm this by using tools like docker save, which will show that the secret is still recorded. Therefore, detecting it is the correct behavior. If you combine the RUN instructions into a single layer as shown below, it should no longer be detected.
|
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
-
IDs
github-app-token
Description
In a docker build, I have
then later in the
Dockerfile
I haveHowever, when I run
aquasecurity/[email protected]
, I get this:I have verified that that file no longer exists in the built image. Here's the step definition I have to call the action:
Suggestions of what's up are welcome. I don't really want to add this to
.trivyignore
but ... can't move forward without it.Reproduction Steps
then later in the
Dockerfile
I haveVersion
Checklist
-f json
that shows data sources and confirmed that the security advisory in data sources was correctBeta Was this translation helpful? Give feedback.
All reactions