#git (2020-06)

All things git (except gitops)

2020-06-25

RB avatar

how does everyone start new projects here ? do you have a git repository template ? do you use a skeleton creator ? or do you wing it like the most of us ?

trying to find good ways to create new repositories using sane defaults. id also like to see if repos are compliant with user defined rules if possible.

RB avatar

would love to hear thoughts on this

2020-06-29

curious deviant avatar
curious deviant

In our team, we frequently create /update TF modules that we maintain in GitHub. There are several teams consuming these modules. I am looking for a Slack- GitHub integration so that whenever we release an update the notification is published to a Slack channel. I tried googling but did not find anything pre-existing. Has anyone solved for something like this before ?

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

there are also org-level webhooks

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

you can tap into those and send them to Zapier

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

(we do this as well)

curious deviant avatar
curious deviant

I am not familiar with Zapier. I’ll check it out too.

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

We use the built-in RSS app in slack for that. See #releases

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

every repo has an atom feed for github releases

curious deviant avatar
curious deviant

Thank you Erik ! I’ll check it out !

RB avatar

could use a github action using dependabot like loren suggests https://sweetops.slack.com/archives/CB6GHNLG0/p1593449185367400

Anyone using Dependabot with Terraform updates…? I’ve been trying to find some real-life examples and haven’t had a moment to try out yet anything, just wanted to check if someone has experience already. I might ask GitHub as well, they had their KB-forum…

1
curious deviant avatar
curious deviant

So the integration looks fairly simple for public repos. For private and internal repos however, RSS app requires basic auth. Is there a more secure way of setting up this integration ?

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

The “generic” answer would be to use Zapier. This is the ultimate swiss army knife.

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

We have hundreds of zaps at cloudposse

curious deviant avatar
curious deviant

sure. thank you . I’ll find out if my org would approve . Meanwhile I also found a couple of other options : 1 ) using an incoming webhook + lambda + api gateway 2) creating a Github action + using Bots to post the github event details to the channel. Looks like even Slack Bots are unapproved in my org . I might end up using the Slack Webhook integration.

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

I think the easiest would be tapping into the organization-level outgoing webhooks. you can capture every single release that way and send it somewhere.

curious deviant avatar
curious deviant

that sounds better. I’ll try that out.

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
05:10:20 AM
1
    keyboard_arrow_up