Skip to content

Commit

Permalink
Clarify token permissions in README
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Oct 2, 2023
1 parent b5ece8a commit 2ca778c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,26 @@ brew install hugo

### To run locally

#### Generate a token

You'll need to get a fine-grained GitHub API token which allows read-only access to all public CYF repos from [this page](https://github.com/settings/tokens?type=beta).

Click "Generate new token", enter a token name (can be anything), and how long you want the token to last (if you're doing a one-off contribution, pick a short value; if you're going to be a regular contributor, maybe a longer value).

Make sure the Resource owner is _your_ account if you have a choice.

The "Repository access" you need is "Public repositories (read-only)", and you don't need any account permissions:

<details>
<summary>Open to view screenshot of the required permissions</summary>

![screenshot of required permissions](./readme_repository_access.png)
</details>

#### Run this command

Run this command in a terminal, substituting in the github API token you generated above:

```bash
npm i
CYF_CURRICULUM_GITHUB_BEARER_TOKEN=your_github_api_token hugo server
Expand Down
Binary file added readme_repository_access.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2ca778c

Please sign in to comment.