Giter Club home page Giter Club logo

Comments (10)

SimeonC avatar SimeonC commented on June 9, 2024 1

No worries. Im from the "there are no stupid questions" school of thought.

Yea, with the token approach it's an app that you have to register manually so I guess this would classify as a more advanced or technically involved usage rather over the app for this repo. Admittedly I use a custom app instead of the official one due to security concerns.

I think technically you can do it with a user token as well but I've not tried that approach as I don't like the automations posting as me from the CI. According to the slack docs both app bot and user tokens only differ with their permissions around who they can post as.

from semantic-release-slack-bot.

juliuscc avatar juliuscc commented on June 9, 2024

Slack manages what channel to post messages to. And you configure that when you set up the Slack integration with this tool. So there is no way for this tool to simply control it with an easy to use API. I think the best workaround is to register this app multiple times and give different SLACK_WEBHOOK values as environment variables. But I am not sure if that works. Could you try and report back how it went? If it works we could add it to the documentation.

from semantic-release-slack-bot.

SimeonC avatar SimeonC commented on June 9, 2024

@juliuscc are you open to a pull adding an option to provide an alternate config to SLACK_WEBHOOK, namely the combination of SLACK_TOKEN and SLACK_CHANNEL?

In our case, we wanted to not use the webhooks but a shared token secret throughout all our CI project runs as we can define the secret globally and our Infrastructure team can manage the app better.

from semantic-release-slack-bot.

juliuscc avatar juliuscc commented on June 9, 2024

I am open to it but I don't fully understand it. Could you explain how the different authentication methods work, and how they differ? I wasn't the one who set up the authentication in the first place 😅

from semantic-release-slack-bot.

juliuscc avatar juliuscc commented on June 9, 2024

But yes I think that you have a good point and this feels like a good feature to have. Especially for larger organizations.

from semantic-release-slack-bot.

SimeonC avatar SimeonC commented on June 9, 2024

Sure, basically for the slack_webhook way we have to create a new webhook for every channel, and as far as I'm aware if the user who has installed the webhook/app is removed from the slack space then the webhook stops working.

With the token method we can install the app once under a single user (in my case our Infrastructure team is handling this) and generate a single OAuth token, this single OAuth token can be used to send messages to any channel in the workspace (with the chat.public permissions, with the basic chat permissions the app needs to be added to the channel before it can post)

from semantic-release-slack-bot.

juliuscc avatar juliuscc commented on June 9, 2024

Would it still be an app that's registered or would it be something else? I think in the case of a webhook it's our app that you run, but with this approach, would you create your own app?

from semantic-release-slack-bot.

juliuscc avatar juliuscc commented on June 9, 2024

Sorry if I am asking stupid questions! 😅

I just want to fully understand the user experience implications 😁

from semantic-release-slack-bot.

juliuscc avatar juliuscc commented on June 9, 2024

This makes sense to me! And now we have saved this conversation for anyone else with the same questions.

from semantic-release-slack-bot.

juliuscc avatar juliuscc commented on June 9, 2024

🎉 This issue has been resolved in version 3.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

from semantic-release-slack-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.