Skip to content

Commit

Permalink
🐛 report slack name and runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Oct 3, 2023
1 parent 020a750 commit 38bf8dc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions providers/slack/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38bf8dc

Please sign in to comment.