You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://pages.github.com/)
10
11
@@ -22,7 +23,7 @@
22
23
23
24
<divalign="center">
24
25
25
-
[](https://michaelcurrin.github.io/code-cookbook/)
26
+
[](https://michaelcurrin.github.io/code-cookbook/"Go to website")
Copy file name to clipboardExpand all lines: recipes/ci-cd/github-actions/tokens/index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,17 +7,17 @@ A GitHub Action needs permissions to push to your `gh-pages` branch - so you mus
7
7
8
8
Here are the approaches, from simplest to most complex to manage. A summary is provided.
9
9
10
-
-[GitHub token]({{ site.baseurl }}{% link recipes/ci-cd/github-actions/tokens/github-token.md %})
10
+
-[GitHub token]({% link recipes/ci-cd/github-actions/tokens/github-token.md %})
11
11
- API key scoped to a single repo.
12
12
- Auto-generated for a GH workflow - low effort.
13
13
- Very secure - you never have to copy or even view the value.
14
14
- The main limitation is that this only works for GitHub Actions, unlike the others.
15
-
-[Access token]({{ site.baseurl }}{% link recipes/ci-cd/github-actions/tokens/access-token.md %})
15
+
-[Access token]({% link recipes/ci-cd/github-actions/tokens/access-token.md %})
16
16
- API key scoped to **all** repos in your GH account.
17
17
- Easy to generate and add to a workflow.
18
18
- **Warning** - this is the least secure. A token is for your entire profile, not per repo. With public repo access, a token gives read and write access to all your public repos - a compromised token can be used to do a lot of damage.
19
19
- This key is useful for doing actions with the GH API such as reporting on stats.
20
-
-[Deploy key]({{ site.baseurl }}{% link recipes/ci-cd/github-actions/tokens/deploy-key.md %})
20
+
-[Deploy key]({% link recipes/ci-cd/github-actions/tokens/deploy-key.md %})
21
21
- API key scoped to a repo.
22
22
- Needs to be generated **locally** once using SSH tool and your email address then pasted in so it takes more effort.
23
23
- Slightly less secure then GH Token as you deal with a value, but this is more flexible.
0 commit comments