Send analysis results to Slack/MS Teams

Sider Scan sends analysis results only by email. However, it is possible to send it to specific channels in Slack and/or Microsoft Teams by using functions on the Slack/MS Teams sides. The instructions on how to do this are described as follows.

1. How to send analysis results to Slack channel

Each channel in Slack has an email address. You can set the address as the destination for Sider Scan analysis results. The following instructions are to get the email address.

  1. Click on the channel name of the Slack channel to which you want to send the analysis results (see below figure).
  2. Click on the Integration tab.
  3. Click on “Send emails to this channel” to get the email address of the channel.

For more information, please refer to this article in Slack’s Help Center.

Write this email address into the configuration file (.siderscan.json). Here is the example of .siderscan.json. For more information on how to set up the email address, please refer to this reference guide.

{
  "report": {
    "mail": {
      "to": ["channelname-xxxxxxxxxxxx@yourorg.slack.com"],
      "useBuiltInProvider": true
    }
  }
}

If your .siderscan.json is automatically generated in the YML file (as it should be if you follow the Sider Scan deployment guide for each CI tool), please replace the email address in the yml with your Slack channel address.

2. How to Send analysis results to Microsoft Teams channel

Each Microsoft Teams channel also has an email address for receiving emails. Let’s use this email address as the recipient of the Sider Scan analysis results.

  1. Click on the channel option at the end of the Teams channel name to which you want to send the analysis results. Then a menu of channel options will appear.
  2. Click on Get email address to get the email address of the channel.

For more information, please refer to this Microsoft support page.

Write this email address into the configuration file (.siderscan.json). Here is the example of .siderscan.json For more information on how to set up the email address, please refer to this reference guide.

{
  "report": {
    "mail": {
      "to": ["xxxxxxx@emea.teams.ms"],
      "useBuiltInProvider": true
    }
  }
}