diff --git a/changelogs/fragments/add-workflow-job-template-webhook-key.yml b/changelogs/fragments/add-workflow-job-template-webhook-key.yml new file mode 100644 index 0000000..986021f --- /dev/null +++ b/changelogs/fragments/add-workflow-job-template-webhook-key.yml @@ -0,0 +1,2 @@ +minor_changes: + - workflow_job_template - add the ``webhook_key`` parameter to set the shared secret the webhook service uses to sign requests, matching the existing ``webhook_service``/``webhook_credential`` support. diff --git a/plugins/modules/workflow_job_template.py b/plugins/modules/workflow_job_template.py index 5e804c1..a5fc870 100644 --- a/plugins/modules/workflow_job_template.py +++ b/plugins/modules/workflow_job_template.py @@ -114,6 +114,11 @@ description: - Personal Access Token for posting back the status to the service API type: str + webhook_key: + description: + - Shared secret that the webhook service will use to sign requests. + - Leave this unset to leave the server value untouched, or set it to an empty string to have the server generate a new one when the webhook service is set. + type: str survey_enabled: description: - Setting that variable will prompt the user for job type on the @@ -824,6 +829,7 @@ def main(): ask_limit_on_launch=dict(type='bool'), webhook_service=dict(choices=['github', 'gitlab', 'bitbucket_dc', '']), webhook_credential=dict(), + webhook_key=dict(no_log=True), labels=dict(type="list", elements='str'), notification_templates_started=dict(type="list", elements='str'), notification_templates_success=dict(type="list", elements='str'), @@ -902,6 +908,7 @@ def main(): 'ask_tags_on_launch', 'ask_skip_tags_on_launch', 'webhook_service', + 'webhook_key', 'job_tags', 'skip_tags', ):