{"id":18914777,"url":"https://github.com/laaraujo/cloud-build-slack-notifications","last_synced_at":"2026-05-17T19:34:00.428Z","repository":{"id":234601029,"uuid":"789196053","full_name":"laaraujo/cloud-build-slack-notifications","owner":"laaraujo","description":"Automated Slack notifications for GCP Cloud Build","archived":false,"fork":false,"pushed_at":"2024-10-14T18:57:56.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T10:38:13.780Z","etag":null,"topics":["cloud-build","gcp","infrastructure-as-code","notifications","slack","terraform"],"latest_commit_sha":null,"homepage":"https://laaraujo.github.io/cloud-build-slack-notifications/","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laaraujo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-19T22:44:55.000Z","updated_at":"2024-10-14T18:57:59.000Z","dependencies_parsed_at":"2024-05-02T05:33:07.381Z","dependency_job_id":"d0436fd5-ab82-4a2d-a3d9-38b08f9317c8","html_url":"https://github.com/laaraujo/cloud-build-slack-notifications","commit_stats":null,"previous_names":["laaraujo/cloud-build-slack-notifications"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/laaraujo/cloud-build-slack-notifications","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laaraujo%2Fcloud-build-slack-notifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laaraujo%2Fcloud-build-slack-notifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laaraujo%2Fcloud-build-slack-notifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laaraujo%2Fcloud-build-slack-notifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laaraujo","download_url":"https://codeload.github.com/laaraujo/cloud-build-slack-notifications/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laaraujo%2Fcloud-build-slack-notifications/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33151786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-build","gcp","infrastructure-as-code","notifications","slack","terraform"],"created_at":"2024-11-08T10:12:51.187Z","updated_at":"2026-05-17T19:34:00.389Z","avatar_url":"https://github.com/laaraujo.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![tfsec](https://github.com/laaraujo/cloud-build-slack-notifications/actions/workflows/tfsec.yml/badge.svg?branch=main)](https://github.com/laaraujo/cloud-build-slack-notifications/actions/workflows/tfsec.yml)\n\n# Cloud Build Slack notifications\n\nGet slack notifications whenever there's a Cloud Build status update.\n\n\n## Table of contents\n\n* [Pre-requisites](#pre-requisites)\n* [Installation](#installation)\n* [Configuration](#configuration)\n* [Manual Deployment](#manual-deployment)\n* [Sources](#sources)\n\n\n## Pre-requisites\n\n1. [Slack App](https://api.slack.com/apps)\n2. [Webhook URL](https://api.slack.com/messaging/webhooks) for the app above\n\n\n## Installation\n\n1. Clone this repository\n```sh\ngit clone git@github.com:laaraujo/cloud-build-slack-notifications.git\n```\n\n2. Change directory to the terraform folder\n```sh\ncd terraform\n```\n\n3. Install Terraform providers and dependencies\n```sh\nterraform init\n```\n\n\n## Configuration\n\n### [For manual deployment](#manual-deployment)\n\nSample `terraform.tfvars`:\n```sh\nproject_id = \"\u003cgcp_project_id\u003e\"\nregion = \"\u003cgcp_region\u003e\"\nzone = \"\u003cgcp_zone\u003e\"\nslack_app_webhook_url = \"\u003cslack_app_webhook_url\u003e\"\n```\n\n\n### [config.yml](./files/config.yml)\nConfig file for the slack notifier image. Let's the actual service know where to look for the template and what kind of notifications to send\n\n* Reference: [GCP Cloud Build API](https://cloud.google.com/build/docs/api/reference/rest/v1/projects.builds)\n\n\n### [template.json](./files/template.json)\nTemplate for the message received in Slack.\nThis repository includes the default one but it can be customized.\n\n\u003e ![resulting notifications](./docs/slack_notifications.png)\n\u003e Result notification from Cloud Build `Run Sample Build` option\n\n* Reference: [Slack API Block Kit](https://api.slack.com/block-kit)\n\n\n## Manual deployment\n\nThese instructions assume you already have:\n* [Terraform](https://www.terraform.io/) installed\n* [GCP Credentials configured locally](https://cloud.google.com/docs/authentication/provide-credentials-adc)\n\n1. Check what `terraform plan` looks like:\n```sh\nterraform plan\n```\n\n2. If the output above looks good, go ahead and apply those changes (you will be prompted to confirm with **\"yes\"**):\n```sh\nterraform apply\n```\n\n\n## Sources\n\n* [Configuring Slack Notifications](https://cloud.google.com/build/docs/configuring-notifications/configure-slack)\n* [GCP Cloud Build API](https://cloud.google.com/build/docs/api/reference/rest/v1/projects.builds) for customizing notifier behavior in [config.yml](./files/config.yml)\n* [Slack API Block Kit](https://api.slack.com/block-kit) for customizing slack message in [template.json](./files/template.json)\n* [Cloud Build Slack Notifier docker image](https://github.com/GoogleCloudPlatform/cloud-build-notifiers/tree/master/slack)\n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaaraujo%2Fcloud-build-slack-notifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaaraujo%2Fcloud-build-slack-notifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaaraujo%2Fcloud-build-slack-notifications/lists"}