Skip to content

Commit 6d49773

Browse files
committed
comment added
1 parent 09a145c commit 6d49773

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

remediation/docker/securedockerfile.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ func SecureDockerFile(inputDockerFile string) (*SecureDockerfileResponse, error)
7171
}
7272
new_cmd := strings.ReplaceAll(c.Original, c.Value[0], fmt.Sprintf("%s:%s@%s", image, tag, sha))
7373
response.FinalOutput = strings.ReplaceAll(response.FinalOutput, c.Original, new_cmd)
74+
// Revert the extra hash for already pinned docker images
7475
response.FinalOutput = strings.ReplaceAll(response.FinalOutput, new_cmd+"@", c.Original+"@")
7576
response.IsChanged = true
7677

0 commit comments

Comments
 (0)