added trimSpace to inputs secrets

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones
2021-12-23 09:22:50 -07:00
parent bbec566bb5
commit 2561f942c6
4 changed files with 37 additions and 11 deletions

View File

@@ -66,6 +66,9 @@ _#inputSecret: {
// See universe.dagger.io/docker.#Run.mounts
// FIXME: `contents` field name causes confusion (not actually the secret contents..)
contents: #Secret
// Whether to trim leading and trailing space characters from secret value
trimSpace: *true | false
}
// Read secret from an environment variable ON THE CLIENT MACHINE