diff --git a/pkg/commands/app.go b/pkg/commands/app.go index a5a35ee8203e..f749ed7727d1 100644 --- a/pkg/commands/app.go +++ b/pkg/commands/app.go @@ -817,7 +817,10 @@ func NewPluginCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command { Short: "Run a plugin on the fly", Args: cobra.MinimumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { - return plugin.Run(cmd.Context(), args[0], plugin.Options{Args: args[1:]}) + return plugin.Run(cmd.Context(), args[0], plugin.Options{ + Args: args[1:], + Insecure: pluginOptions.Insecure, + }) }, }, &cobra.Command{