devcontainers / devcontainers/cli

Variable expansion in secrets file

Offen
#555 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
feature-request
Vorherrschende Sprache
TypeScript
Sterne
3k
Forks
457
Ø Merge
13 Std. 17 Min.
Gemergte PRs (30 T.)
6

Beschreibung

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:

```.json
{
"GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}"
}
```

instead of:

```.json
{
"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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.