Feat: add configurable HTTP timeout to request, webhook, and notification steps (#7243)

* Feat: expose HTTP timeout on built-in workflow steps

Allow request, webhook, and notification steps to set an optional
timeout (Go duration string) that is forwarded to http.#HTTPDo as
request.timeout, so slow HTTP calls are no longer stuck at the 3s default.

Signed-off-by: shaurya2k06 <shaurya2k06@gmail.com>

* Feat: Made requested changes

Signed-off-by: shaurya2k06 <shaurya2k06@gmail.com>

* Fix: align timeout duration regex with Go ParseDuration

Accept "0" and leading-dot fractions like ".5s", matching
time.ParseDuration more closely while still rejecting unit-less
values such as "30".

Signed-off-by: shaurya2k06 <shaurya2k06@gmail.com>

---------

Signed-off-by: shaurya2k06 <shaurya2k06@gmail.com>
This commit is contained in:
Shaurya Srivastava
2026-07-22 16:32:18 -07:00
committed by GitHub
parent 39541de387
commit 50c3223ce3
11 changed files with 154 additions and 17 deletions
@@ -21,6 +21,7 @@ spec:
- name: notification
type: notification
properties:
timeout: 30s
dingding:
# directly specify the webhook url
url: