devcontainers / spec

Development Containers: Use a container as a full-featured development environment.
https://containers.dev
Creative Commons Attribution 4.0 International
3.62k stars 234 forks source link

Add defaultValue to secrets #430

Open agardnerIT opened 9 months ago

agardnerIT commented 9 months ago

May I suggest adding a defaultValue to secrets.

Usecase

My users fork my repo and create a codespace from it. I suggest secrets. One of which will have a value of live for 95% of my users. So to make life easy, I just want to prefill the input box with live.

samruddhikhandale commented 9 months ago

Hi 👋

Are you referring to Codespaces secrets (user/repo)? If so, can you open an issue in https://github.com/orgs/community/discussions/categories/codespaces instead?

agardnerIT commented 9 months ago

Hi. The spec doesn't yet support a field so that's the ask here, to consider adding it to the spec - which GitHub can then ultimately consume.

https://github.com/devcontainers/spec/blob/87e7ce0a2e25264032e836a3c5379692491e9d4b/schemas/devContainer.base.schema.json#L53