From 4e9981931c0277b4cc0ca004dde7d4de69127017 Mon Sep 17 00:00:00 2001 From: Igor Ignatev Date: Wed, 18 Jan 2023 17:22:00 +0200 Subject: [PATCH] remove key --- cmd/bpdispatcher/main.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/bpdispatcher/main.go b/cmd/bpdispatcher/main.go index 28a0e68..6db8f6e 100644 --- a/cmd/bpdispatcher/main.go +++ b/cmd/bpdispatcher/main.go @@ -13,8 +13,7 @@ var ( AccessToken, ok1 = os.LookupEnv("ACCESS_TOKEN") RepoOwner, ok2 = os.LookupEnv("REPO_OWNER") RepoSlug, ok3 = os.LookupEnv("REPO_SLUG") - PipelineKey, ok4 = os.LookupEnv("PIPELINE_KEY") - PipelineRef, ok5 = os.LookupEnv("PIPELINE_REF") + PipelineRef, ok4 = os.LookupEnv("PIPELINE_REF") ) type Webhook struct { @@ -98,8 +97,7 @@ func main() { checkEnv("ACCESS_TOKEN", ok1) checkEnv("REPO_OWNER", ok2) checkEnv("REPO_SLUG", ok3) - checkEnv("PIPELINE_KEY", ok4) - checkEnv("PIPELINE_REF", ok5) + checkEnv("PIPELINE_REF", ok4) http.HandleFunc("/webhook", handleWebhook) http.HandleFunc("/healthz", livenessProbe) http.HandleFunc("/ready", readinessProbe)