[英]How to use github secrets in firebase cloud functions
I am exploring github secrets along with github Actions to deloy firebase function on cloud.我正在探索 github secrets 和 github Actions 以在云上部署 firebase 功能。 In my app i am using lot of config value which should not be plain text in application so hiding these info i research about github secret that how it is working and can get the secrets in Workflow while building and deployment of application.在我的应用程序中,我在应用程序中使用了许多不应是纯文本的配置值,因此隐藏这些信息我研究了 github 秘密,它是如何工作的,并且可以在构建和部署应用程序时获取工作流中的秘密。 I am little confused that is it possible to use github secrets as a application secret store if yes then howit should work if i have a firebase function and going to deploy on cloud?我有点困惑,如果是的话,是否可以将 github 机密用作应用程序机密存储,那么如果我有 Firebase 功能并要部署在云上,它应该如何工作? Is there any example then please share.有没有例子然后分享一下。
PS: i am using github action to deploy my function on cloud when git push happens. PS:当发生 git push 时,我正在使用 github action 在云上部署我的函数。
GitHub secrets is not designed to be used as an application secret store. GitHub 机密并非旨在用作应用程序机密存储。 Only the GitHub Actions app can retrieve and decrypt the secret values so they can be sent to the runner with the job.只有 GitHub Actions 应用程序可以检索和解密机密值,以便将它们与作业一起发送给运行程序。
We currently do not and do not have a plan to enable other apps to retrieve and decrypt the secret values.我们目前没有也没有计划让其他应用程序检索和解密秘密值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.