From c7a19f829ce8f200dfbb71ef08b45c9631bba50e Mon Sep 17 00:00:00 2001 From: Lorenzo Susini <49318629+loresuso@users.noreply.github.com> Date: Thu, 27 Jul 2023 14:30:20 +0200 Subject: [PATCH] update: explicitly check for rulesfile or asset while pushing Co-authored-by: Federico Di Pierro Signed-off-by: Lorenzo Susini <49318629+loresuso@users.noreply.github.com> --- pkg/oci/pusher/pusher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/oci/pusher/pusher.go b/pkg/oci/pusher/pusher.go index 2976cdcf..17fd653c 100644 --- a/pkg/oci/pusher/pusher.go +++ b/pkg/oci/pusher/pusher.go @@ -167,7 +167,7 @@ func (p *Pusher) Push(ctx context.Context, artifactType oci.ArtifactType, } } - if artifactType != oci.Plugin { + if artifactType == oci.Rulesfile || artifactType == oci.Asset { // We should have only one manifestDesc for any not arch dependent artifact. rootDesc = manifestDescs[0] } else {