课程: GitHub Quick Tips

免费学习该课程!

今天就开通帐号,24,600 门业界名师课程任您挑!

Use a secret key on your projects

Use a secret key on your projects - GitHub教程

课程: GitHub Quick Tips

Use a secret key on your projects

- [Instructor] There are times when projects require special keys that cannot reside with your repositories. There's a few ways that you can handle that. Now, GitHub gives you the ability to create secrets that will be stored with each repository. Let's click on Settings and then click on Secrets. Let's add a new secret right here. And here, you're going to give the secret a name. Now this has to be a name that has underscores, no spaces, or even hyphens. So we'll create something called a dark_sky_secret here. And then you want to paste in a value, so for this I'm going to go to my developer account for Dark Sky and I'm going to copy this key and go back into my Secrets tab and paste the value here. I'm going to hit Add Secret and this will create a new secret that will be available to all contributors that are using actions in our project, but not let them see what that original hash is, so there's no way of actually…

内容