Skip to content

Commit

Permalink
update: explicitly handle artifact types when pushing
Browse files Browse the repository at this point in the history
Co-authored-by: Federico Di Pierro <[email protected]>
Signed-off-by: Lorenzo Susini <[email protected]>
  • Loading branch information
loresuso and FedeDP committed Jul 31, 2023
1 parent 83f13d1 commit 0493208
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/oci/pusher/pusher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion pkg/options/directory_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
package options

import (
"github.com/falcosecurity/falcoctl/internal/config"
"github.com/spf13/cobra"

"github.com/falcosecurity/falcoctl/internal/config"
)

const (
Expand Down

0 comments on commit 0493208

Please sign in to comment.