cli icon indicating copy to clipboard operation
cli copied to clipboard

Variable expansion in secrets file

Open yokonao opened this issue 2 years ago • 1 comments

Hi,

I would like to express my sincere gratitude to the maintainers of this wonderful tool.

I have a question concerning the --secrets-file option. Currently, the file passed to --secrets-file is interpreted as a raw jsonc file. However, I would like to use some variable syntax, which is already used in devcontainer.json.

For example, I would like to use the following syntax in my secrets file:

{
  "GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}"
}

instead of:

{
  "GITHUB_TOKEN": "ghp********"
}

I would like to know the maintainer team's opinion on whether this idea is reasonable or not.

Thank you in advance.

yokonao avatar Jun 18 '23 01:06 yokonao

Thanks so much for your issue and feedback @yokonao!

@eljog do you have any thoughts here?

bamurtaugh avatar Jun 27 '23 21:06 bamurtaugh