mirror of
https://github.com/ysoftdevs/terraform-provider-bitbucketserver.git
synced 2026-03-24 18:31:11 +01:00
Fix update webhook and use secret for webhook authentication (#42)
* Fix update repository webhooks and extend webhook tests * Use secret to authenticate the webhook payload and extend the tests with the secret Co-authored-by: Raul Barreto <raul.barreto@redbull.com>
This commit is contained in:
committed by
GitHub
parent
bee3f62908
commit
1323abe664
@@ -20,6 +20,7 @@ resource "bitbucketserver_repository_webhook" "main" {
|
||||
repository = bitbucketserver_repository.test.slug
|
||||
name = "google"
|
||||
webhook_url = "https://www.google.com/"
|
||||
secret = "abc"
|
||||
events = ["repo:refs_changed"]
|
||||
active = true
|
||||
}
|
||||
@@ -31,6 +32,7 @@ resource "bitbucketserver_repository_webhook" "main" {
|
||||
* `repository` - Required. Repository slug to enable hook for.
|
||||
* `name` - Required. Name of the webhook.
|
||||
* `webhook_url` - Required. The URL of the webhook.
|
||||
* `secret` - Optional. Secret used to authenticate the payload.
|
||||
* `events` - Required. A list of events to trigger the webhook url.
|
||||
* `active` - Optional. Enable or disable the webhook. Default: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user