From 2cb00150f6d0693b797d14f4e4ef7eeb215ffec4 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 21 May 2026 07:38:58 +0200 Subject: [PATCH 1/2] Update documentation for secret placeholders fix typo --- docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index 7e3df6ecf..f8816877a 100644 --- a/docs/api.md +++ b/docs/api.md @@ -358,7 +358,7 @@ $path = run('readlink {{deploy_path}}/current'); run("echo $path"); ``` -Pass secrets via `%name%` placeholders so they are redacted in logs: +Pass secrets via placeholders (e.g. `%token%`) so they are redacted in logs: ```php run('curl -u admin:%token% https://api.example', secrets: ['token' => getenv('TOKEN')]); ``` From 74d45ca625c4e1fb4fdb0d07789ad5b475753513 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 21 May 2026 07:42:14 +0200 Subject: [PATCH 2/2] docgen --- src/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions.php b/src/functions.php index a47cb3a17..d7be42887 100644 --- a/src/functions.php +++ b/src/functions.php @@ -475,7 +475,7 @@ function within(string $path, callable $callback): mixed * run("echo $path"); * ``` * - * Pass secrets via `%name%` placeholders so they are redacted in logs: + * Pass secrets via placeholders (e.g. `%token%`) so they are redacted in logs: * ```php * run('curl -u admin:%token% https://api.example', secrets: ['token' => getenv('TOKEN')]); * ```