spec icon indicating copy to clipboard operation
spec copied to clipboard

Add defaultValue to secrets

Open agardnerIT opened this issue 2 years ago • 2 comments

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.

agardnerIT avatar Feb 19 '24 00:02 agardnerIT

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?

samruddhikhandale avatar Feb 21 '24 17:02 samruddhikhandale

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

agardnerIT avatar Feb 22 '24 07:02 agardnerIT