Skip to content

Commit 8206661

Browse files
authored
Utilize SensitiveParameter attribute (#4122)
* Utilize SensitiveParameter attribute * fix build
1 parent 381115e commit 8206661

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

docs/api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ run(
233233
string $command,
234234
?string $cwd = null,
235235
?array $env = null,
236+
#[\SensitiveParameter]
236237
?string $secret = null,
237238
?bool $nothrow = false,
238239
?bool $forceOutput = false,
@@ -278,6 +279,7 @@ runLocally(
278279
?string $cwd = null,
279280
?int $timeout = null,
280281
?int $idleTimeout = null,
282+
#[\SensitiveParameter]
281283
?string $secret = null,
282284
?array $env = null,
283285
?bool $forceOutput = false,

src/Ssh/RunParams.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ public function __construct(
1313
public ?int $timeout = null,
1414
public ?int $idleTimeout = null,
1515
public bool $forceOutput = false,
16+
#[\SensitiveParameter]
1617
public ?array $secrets = null,
1718
) {}
1819

1920
public function with(
21+
#[\SensitiveParameter]
2022
?array $secrets = null,
2123
?int $timeout = null,
2224
): self {

src/functions.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ function run(
393393
string $command,
394394
?string $cwd = null,
395395
?array $env = null,
396+
#[\SensitiveParameter]
396397
?string $secret = null,
397398
?bool $nothrow = false,
398399
?bool $forceOutput = false,
@@ -483,6 +484,7 @@ function runLocally(
483484
?string $cwd = null,
484485
?int $timeout = null,
485486
?int $idleTimeout = null,
487+
#[\SensitiveParameter]
486488
?string $secret = null,
487489
?array $env = null,
488490
?bool $forceOutput = false,

0 commit comments

Comments
 (0)