hide api key for a Github page

前端 未结 4 984
感动是毒
感动是毒 2021-02-02 08:27

I have a github page for my organization where I would like to call data from a 3rd party api where I need an auth token. Can I publish this github page without having the auth

4条回答
  •  无人共我
    2021-02-02 09:05

    The GitHub Actions should facilitate your need.

    You can add secrets using the visual workflow editor or the repository settings. Once you create a secret, GitHub encrypts the value immediately and you can no longer view or edit the value. Anyone with write access to a repository can create and use secrets in that repository.

    However, the GitHub Actions is currently available in public beta and therefore should be avoided for high-value workflows and content during this beta period.

提交回复
热议问题