How to add/edit a batch of secrets

I have a multi-platform support flutter app which contains a lot of secrets (more than 20+), It take me a lot of time to add one by one, is there any convenient way to do it, and some time I want to check the existed value, but it is not available, could we provide this feature?

@liudonghua123,

It take me a lot of time to add one by one, is there any convenient way to do it

You can try to use the API ā€œCreate or update an organization secretā€ to do that.
You can develop a script or a tool to execute this API in a loop so that it can create or update multiple secrets in batches.
You may need to use Node.js, Python, C# or Ruby to develop the tool.

I want to check the existed value, but it is not available, could we provide this feature?

We do not have any available and safe method to obtain the values of secrets in clear form.
We recommend that you should avoid trying to obtain or printing the actual values of secrets.

Thanks! Use an api is workable. However It would be great if github provide intuitive UI to batch add/edit.

Do you have any ideas on how to view/check the existed secret value?

@liudonghua123,

However It would be great if github provide intuitive UI to batch add/edit.

Thanks for your feedback.
GitHub takes your suggestions very seriously, and the suggestions are very helpful for improving GitHub.
If your projects really need this feature, I recommend that you can directly report a feature request here. That will allow you to directly interact with the appropriate engineering team, and make it more convenient for the engineering team to collect and categorize your suggestions.

Do you have any ideas on how to view/check the existed secret value?

Iā€™m afraid that there are not good ideas.
Considering the security of some sensitive information stored in the secrets, any tries to obtain or printing the actual values of secrets will bring the risks of information leakage.

1 Like