From 534ae70ca408ba3bc7496899305ef05b84250791 Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Wed, 11 Jan 2023 15:41:13 +0100 Subject: [PATCH] remove signature from OCI image --- internal/pkg/oci/puller.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/pkg/oci/puller.go b/internal/pkg/oci/puller.go index 9acae792..c071f2f4 100644 --- a/internal/pkg/oci/puller.go +++ b/internal/pkg/oci/puller.go @@ -131,8 +131,9 @@ func (p *puller) Pull(ctx context.Context, uri, dst string) (err error) { // copy to cache location _, err = copy.Image(ctx, policyCtx, cacheRef, srcRef, ©.Options{ - ReportWriter: os.Stdout, - SourceCtx: p.sysCtx, + ReportWriter: os.Stdout, + SourceCtx: p.sysCtx, + RemoveSignatures: true, }) if err != nil { return err