We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a96b265 commit 20b6844Copy full SHA for 20b6844
cmd/config.go
@@ -44,6 +44,14 @@ func LoadConfig(configPath string) (Config, error) {
44
config.ServerEndpoint = "ws://localhost:3400/subscribe"
45
}
46
47
+ if os.Getenv("GITHUB_WEBHOOK_SECRET") != "" {
48
+ config.GithubSecret = os.Getenv("GITHUB_WEBHOOK_SECRET")
49
+ }
50
+
51
+ if os.Getenv("SUBSCRIBE_SECRET") != "" {
52
+ config.SubscribeSecret = os.Getenv("SUBSCRIBE_SECRET")
53
54
55
validate := validator.New(validator.WithRequiredStructEnabled())
56
57
if err := validate.Struct(config); err != nil {
0 commit comments