Skip to content

Commit 30ab7d8

Browse files
authored
Merge pull request moby#3558 from jedevc/sbom-tmp-dir
sbom: always create tmp directory for scanner image
2 parents b43d5f3 + 25c190d commit 30ab7d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontend/attestations/sbom/sbom.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ func CreateSBOMScanner(ctx context.Context, resolver llb.ImageMetaResolver, scan
7878
}
7979

8080
runscan := llb.Image(scanner).Run(runOpts...)
81+
runscan.AddMount("/tmp", llb.Scratch(), llb.Tmpfs())
82+
8183
runscan.AddMount(path.Join(srcDir, "core", CoreSBOMName), ref, llb.Readonly)
8284
for k, extra := range extras {
8385
runscan.AddMount(path.Join(srcDir, "extras", ExtraSBOMPrefix+k), extra, llb.Readonly)

0 commit comments

Comments
 (0)