From 934ec7f181af821995371df544a3cfc5476bbc3d Mon Sep 17 00:00:00 2001 From: Adam Jensen Date: Wed, 25 Mar 2020 08:22:19 -0400 Subject: [PATCH] Clarify instructions for getting a token (#18) * Clarify instructions for getting a token * Fix typo --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2d3aecb3..1b65124e 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,9 @@ First, install *actions-runner-controller* with a manifest file. This will creat $ kubectl apply -f https://github.com/summerwind/actions-runner-controller/releases/latest/download/actions-runner-controller.yaml ``` -Set your access token of GitHub to the secret. `${GITHUB_TOKEN}` is the value you must replace with your access token. This token is used to register Self-hosted runner by *actions-runner-controller*. +Next, from an account that has `admin` privileges for the repository, create a [personal access token](https://github.com/settings/tokens) with `repo` scope. This token is used to register a self-hosted runner by *actions-runner-controller*. + +Then, create a Kubernetes secret, replacing `${GITHUB_TOKEN}` with your token. ``` $ kubectl create secret generic controller-manager --from-literal=github_token=${GITHUB_TOKEN} -n actions-runner-system @@ -67,7 +69,7 @@ NAME READY STATUS RESTARTS AGE example-runner 2/2 Running 0 1m ``` -The runner you created has been registerd to your repository. +The runner you created has been registered to your repository. Actions tab in your repository settings