Merge pull request #640 from mslacken/removeSigs

remove signature from OCI image
This commit is contained in:
Christian Goll
2023-01-18 21:29:33 +01:00
committed by GitHub

View File

@@ -131,8 +131,9 @@ func (p *puller) Pull(ctx context.Context, uri, dst string) (err error) {
// copy to cache location // copy to cache location
_, err = copy.Image(ctx, policyCtx, cacheRef, srcRef, &copy.Options{ _, err = copy.Image(ctx, policyCtx, cacheRef, srcRef, &copy.Options{
ReportWriter: os.Stdout, ReportWriter: os.Stdout,
SourceCtx: p.sysCtx, SourceCtx: p.sysCtx,
RemoveSignatures: true,
}) })
if err != nil { if err != nil {
return err return err