hide api key for a Github page

前端 未结 4 982
感动是毒
感动是毒 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 08:55

    The answer of Ashen won't work for this use case. Secrets configured through Github are only available to Github Actions (see documentation), and because of that - in practice - mostly to CI/CD-like applications. Not for e.g. client-side API calls.

提交回复
热议问题