diff --git a/internal/ocipush/push.go b/internal/ocipush/push.go index 8f632a878dd..0296f67da46 100644 --- a/internal/ocipush/push.go +++ b/internal/ocipush/push.go @@ -179,7 +179,7 @@ func generateManifest(layers []v1.Descriptor, ociCompat api.OCIVersion) ([]Pusha config = v1.DescriptorEmptyJSON artifactType = ComposeProjectArtifactType // N.B. the descriptor has the data embedded in it - toPush = append(toPush, Pushable{Descriptor: config, Data: nil}) + toPush = append(toPush, Pushable{Descriptor: config, Data: make([]byte, len(config.Data))}) default: return nil, fmt.Errorf("unsupported OCI version: %s", ociCompat) }