Skip to content

Commit

Permalink
remove key
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Ignatev committed Jan 18, 2023
1 parent 05f21a9 commit 4e99819
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/bpdispatcher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4e99819

Please sign in to comment.