-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Labels
Type: FeatureNew feature or requestNew feature or request
Description
Describe the need
Currently, it's only possible to configure GitHub webhooks secret by passing the string to ConfigureGitHubWebhooks (at least if you don't manually want to configure GitHubWebhooksOptions). I suggest adding a configuration extension method that accepts a Func<IConfiguration, string> to retrieve the secret from configuration sources, allowing for a more dynamic configuration.
new HostBuilder()
.ConfigureServices(collection =>
{
collection.AddSingleton<WebhookEventProcessor, MyWebhookEventProcessor>();
})
.ConfigureGitHubWebhooks((configuration) => configuration.GetValue<string>("GitHubWebhookSecret"))
.ConfigureFunctionsWorkerDefaults()
.Build()
.Run();SDK Version
No response
API Version
No response
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Type: FeatureNew feature or requestNew feature or request
Type
Projects
Status
✅ Done