Add DRONE_WEBHOOK_SECRET for GitHub webhook authentication

Fixes webhook signature validation failures causing 400 errors.
This commit is contained in:
Viktor Barzin 2026-02-01 20:42:07 +00:00
parent 4a857ebefd
commit 29567103d6
4 changed files with 9 additions and 0 deletions

View file

@ -3,6 +3,7 @@ variable "tier" { type = string }
variable "github_client_id" {}
variable "github_client_secret" {}
variable "rpc_secret" {}
variable "webhook_secret" {}
variable "server_host" {}
variable "server_proto" {}
variable "rpc_host" {
@ -98,6 +99,10 @@ resource "kubernetes_deployment" "drone_server" {
name = "DRONE_RPC_SECRET"
value = var.rpc_secret
}
env {
name = "DRONE_WEBHOOK_SECRET"
value = var.webhook_secret
}
env {
name = "DRONE_SERVER_HOST"
value = var.server_host