From 38bf8dcd14e7d5ae37a4abb6bacbd4b68a02546c Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Tue, 3 Oct 2023 23:04:43 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20report=20slack=20name=20and=20ru?= =?UTF-8?q?ntime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- providers/slack/provider/provider.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/providers/slack/provider/provider.go b/providers/slack/provider/provider.go index f4b3a1c17b..f996a14f6f 100644 --- a/providers/slack/provider/provider.go +++ b/providers/slack/provider/provider.go @@ -168,12 +168,13 @@ func (s *Service) connect(req *plugin.ConnectReq, callback plugin.ProviderCallba func (s *Service) detect(asset *inventory.Asset, conn *connection.SlackConnection) error { asset.Id = conn.Conf.Type + "://" + conn.TeamID() - asset.Name = conn.Conf.Host + asset.Name = "Slack team " + conn.TeamName() asset.Platform = &inventory.Platform{ - Name: "slack-team", - Family: []string{"slack"}, - Kind: "api", - Title: "Slack Team", + Name: "slack-team", + Family: []string{"slack"}, + Kind: "api", + Title: "Slack Team", + Runtime: "slack", } asset.PlatformIds = []string{"//platformid.api.mondoo.app/runtime/slack/team/" + conn.TeamID()} return nil