Skip to content

Commit

Permalink
Merge pull request #44 from divlv/master
Browse files Browse the repository at this point in the history
Notes regarding PAT scopes and privileges.
  • Loading branch information
myoung34 authored Aug 6, 2020
2 parents d68d9f6 + 5357aa8 commit 26ed21b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,17 @@ docker run -d --restart always --name github-runner \
-v /tmp/github-runner-your-repo:/tmp/github-runner-your-repo \
myoung34/github-runner:latest
```

## Create GitHub personal access token ##

Creating GitHub personal access token (PAT) for using by self-hosted runner make sure the following scopes are selected:

* repo (all)
* admin:org (all) **_(mandatory for organization-wide runner)_**
* admin:public_key - read:public_key
* admin:repo_hook - read:repo_hook
* admin:org_hook
* notifications
* workflow

Also, when creating a PAT for self-hosted runner which will process events from several repositories of the particular organization, create the PAT using organization owner account. Otherwise your new PAT will not have sufficient privileges for all repositories.

0 comments on commit 26ed21b

Please sign in to comment.