Skip to content

Commit

Permalink
docs: explain PAT usage
Browse files Browse the repository at this point in the history
  • Loading branch information
browniebroke committed Oct 21, 2020
1 parent 6d1adef commit bbe7a42
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ This workflow will be adding the `hacktoberfest` topic to your repo and label al

The workflow will behave differently if executed in October. You can run it once at the beginning of November to remove the `hacktoberfest` topic from your repo and un-label your issues.


```yaml
name: Hacktoberfest

Expand All @@ -26,5 +25,10 @@ jobs:
steps:
- uses: browniebroke/hacktoberfest-labeler-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
```
Note that the default `secrets.GITHUB_TOKEN` hasn't got [enough permissions][token-permissions], and cannot update the repository's topics. You should create a repo scoped [personal access token][pat] instead.

[token-permissions]: https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token
[pat]: https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token

0 comments on commit bbe7a42

Please sign in to comment.