Skip to content

Commit

Permalink
docs: update README.md to suggest forking due to GitHub's wide permis…
Browse files Browse the repository at this point in the history
…sion scopes (#265)
  • Loading branch information
ElanHasson authored Aug 11, 2022
1 parent bab7303 commit cdec691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
github_token: ${{ secrets.GH_PAT }}
```
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.
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. Alternatively, you can fork the repo and replace the action name to use your fork after reviewing the code to ensure security of your repository. This would mitigate the non-granular GitHub PAT permission scopes.

[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 cdec691

Please sign in to comment.