From 2715e4c774d0640243c23a0b704859e01b21cf2b Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Fri, 25 Oct 2024 14:02:32 -0700 Subject: [PATCH] Document that secrets can be CSV (#307) Closes https://github.com/google-github-actions/get-secretmanager-secrets/issues/306 --- README.md | 10 +++++----- action.yml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index fdcec09..ce104ad 100644 --- a/README.md +++ b/README.md @@ -61,11 +61,11 @@ jobs: -- secrets: _(Required)_ The list of secrets to access and inject into the - environment. Due to limitations with GitHub Actions inputs, this is - specified as a string. - - You can specify multiple secrets by putting each secret on its own line: +- secrets: _(Required)_ List of secrets to access and inject into the environment. These are + comma-separated or newline-separated `OUTPUTNAME:SECRET`. Output names or + secret names that contain separators must be escaped with a backslash + (e.g. `\,` or `\\n`) unless quoted. Any leading or trailing whitespace is + trimmed unless values are quoted. ```yaml secrets: |- diff --git a/action.yml b/action.yml index 1e5fbf6..d7a1fd4 100644 --- a/action.yml +++ b/action.yml @@ -21,11 +21,11 @@ description: |- inputs: secrets: description: |- - The list of secrets to access and inject into the - environment. Due to limitations with GitHub Actions inputs, this is - specified as a string. - - You can specify multiple secrets by putting each secret on its own line: + List of secrets to access and inject into the environment. These are + comma-separated or newline-separated `OUTPUTNAME:SECRET`. Output names or + secret names that contain separators must be escaped with a backslash + (e.g. `\,` or `\\n`) unless quoted. Any leading or trailing whitespace is + trimmed unless values are quoted. ```yaml secrets: |-