From b3268410761ec329ae2e9b80397d834f81bac0f2 Mon Sep 17 00:00:00 2001 From: DIGVIJAY <144053736+digvijay-y@users.noreply.github.com> Date: Thu, 9 Oct 2025 04:59:42 +0000 Subject: [PATCH] docs: Example for getenv --- docs/Templates.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/Templates.md b/docs/Templates.md index 90ebb24..4eadec6 100644 --- a/docs/Templates.md +++ b/docs/Templates.md @@ -81,6 +81,11 @@ In addition to the [built-in Go template functions and features][tt], `webhook` The `getenv` template function can be used for inserting environment variables into a templated configuration file. +Example: +```json +"Secret": "{{getenv \"TEST_secret\" | js}}" +``` + ### `cat` The `cat` template function can be used to read a file from the local filesystem. This is useful for reading secrets from files. If the file doesn't exist, it returns an empty string.