Skip to content

Commit

Permalink
fix: Add gh webhook secret (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 authored Oct 10, 2024
1 parent 1b54e20 commit 6a6cbe0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
19 changes: 10 additions & 9 deletions modules/helm_release/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ locals {
}

image_tags = {
"webservice.image.tag" = "9fce138",
"migrations.image.tag" = "57101f8",
"event-worker.image.tag" = "57101f8",
"job-policy-checker.image.tag" = "57101f8",
"webservice.image.tag" = "55631d3",
"migrations.image.tag" = "e2b19bd",
"event-worker.image.tag" = "78ed086",
"job-policy-checker.image.tag" = "78ed086",
}

postgres_settings = {
Expand All @@ -19,11 +19,12 @@ locals {
}

integrations_settings = var.github_bot != null ? {
"global.integrations.github.bot.name" = var.github_bot.name
"global.integrations.github.bot.appId" = var.github_bot.app_id
"global.integrations.github.bot.clientId" = var.github_bot.client_id
"global.integrations.github.bot.clientSecret" = var.github_bot.client_secret
"global.integrations.github.bot.privateKey" = var.github_bot.client_private_key
"global.integrations.github.bot.name" = var.github_bot.name
"global.integrations.github.bot.appId" = var.github_bot.app_id
"global.integrations.github.bot.clientId" = var.github_bot.client_id
"global.integrations.github.bot.clientSecret" = var.github_bot.client_secret
"global.integrations.github.bot.privateKey" = var.github_bot.client_private_key
"global.integrations.github.bot.webhookSecret" = var.github_bot.webhook_secret
} : {}

auth_providers_settings = {
Expand Down
3 changes: 2 additions & 1 deletion modules/helm_release/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,12 @@ variable "github_bot" {
client_id = string
client_secret = string
client_private_key = string
webhook_secret = string
})
description = "The GitHub bot user and token."
default = null
}

variable "values" {
type = map(any)
}
}
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ variable "github_bot" {
client_id = string
client_secret = string
client_private_key = string
webhook_secret = string
})
description = "The GitHub bot user and token."
default = null
Expand Down

0 comments on commit 6a6cbe0

Please sign in to comment.