[英]How to secure secrets in html file hosted on Github pages?
I am creating a weather app in HTML and host it on GitHub pages.我正在 HTML 中创建一个天气应用程序,并将其托管在 GitHub 页面上。
I am using a secret key to fetch the city's weather details.我正在使用密钥来获取城市的天气详细信息。
I don't want to public the secret key.我不想公开密钥。
How can I secure the secret key in HTML application?如何保护 HTML 应用程序中的密钥?
read the github docs:阅读 github 文档:
https://docs.github.com/en/github/developing-online-with-codespaces/managing-encrypted-secrets-for-codespaces#about-encrypted-secrets-for-codespaces https://docs.github.com/en/github/developing-online-with-codespaces/managing-encrypted-secrets-for-codespaces#about-encrypted-secrets-for-codespaces
and the second link has the video to it as well with sets of instructions第二个链接也有视频和说明集
https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/GitHub-Actions-Secrets-Example-Token-Tutorial https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/GitHub-Actions-Secrets-Example-Token-Tutorial
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.