Skip to content

Commit 25c190d

Browse files
committed
sbom: create tmp directory for scanner image
Signed-off-by: Justin Chadwell <[email protected]>
1 parent 9b28f40 commit 25c190d

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)