Skip to content

Commit

Permalink
📝 Mention required scope for PAT
Browse files Browse the repository at this point in the history
Mention which scope/permission is required for the PAT.

Reference: [#31](#31 (reply in thread))
  • Loading branch information
BetaHuhn committed Jun 25, 2021
1 parent b118e99 commit d23bb51
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ jobs:
GH_PAT: ${{ secrets.GH_PAT }}
```
In order for the Action to access your repositories you have to specify a [Personal Access token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) as the value for `GH_PAT`.

> **Note:** `GITHUB_TOKEN` will not work
In order for the Action to access your repositories you have to specify a [Personal Access token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) as the value for `GH_PAT` (`GITHUB_TOKEN` will **not** work). The PAT needs the full repo scope ([#31](https://github.com/BetaHuhn/repo-file-sync-action/discussions/31#discussioncomment-674804)).

It is recommneded to set the token as a
[Repository Secret](https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository).
Expand Down

0 comments on commit d23bb51

Please sign in to comment.