-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dockerfile: remove duplicate layer chains from provenance attestation
When a step in the dockerfile is a dependency of multiple other steps in the dockerfile, the provenance attestation would record the layer chain for that step multiple times even with the same layer chain. This is because the provenance attestation reuses the exporter mechanic and the exporter mechanic would need to visit this same step multiple times to produce the appropriate cache entries. Since these duplicate layer chains aren't intentional, this modifies the provenance attestation capture to detect these duplicates and remove them. Signed-off-by: Jonathan A. Sternberg <[email protected]>
- Loading branch information
1 parent
dd196ce
commit 94af8de
Showing
3 changed files
with
105 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters