Replace legacy integration token SLACK_TOKEN
Summary
Slack::Message
class expects a SLACK_TOKEN
, which currently contains a token from the legacy integration Chatops bot. Replace this with a token from the new Slack App. The token value will have to be changed in https://ops.gitlab.net/gitlab-org/release/tools/-/settings/ci_cd, under Variables
.
The new token can be obtained from https://api.slack.com/apps/A0385PGTMSQ/oauth, under Bot User OAuth Token
.
This will make all calls to the chat.postMessage
API use the new token.
Plan for rollback
If Slack notifications stop working after replacing the token, we can simply put the old token back in place.
Edited by Reuben Pereira