From d23bb51c63109571e071e33f40e98a543eacc5cd Mon Sep 17 00:00:00 2001 From: Maximilian Schiller Date: Fri, 25 Jun 2021 21:32:22 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Mention=20required=20scope=20for?= =?UTF-8?q?=20PAT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mention which scope/permission is required for the PAT. Reference: [#31](https://github.com/BetaHuhn/repo-file-sync-action/discussions/31#discussioncomment-918180) --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index ca08af2d..e4f218e3 100644 --- a/README.md +++ b/README.md @@ -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).