docs: add link to fine-grained pat

This commit is contained in:
Peter Evans
2023-07-05 10:12:12 +09:00
committed by GitHub
parent 4d042f3cdd
commit da2ccb0fc8

View File

@@ -41,9 +41,9 @@ The default `GITHUB_TOKEN` token can only be used if you are dispatching the sam
To dispatch to a remote repository you must create a [Personal Access Token (PAT)](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) with the `repo` scope and store it as a secret.
If you will be dispatching to a public repository then you can use the more limited `public_repo` scope.
You can also use a fine grained access token (beta). It needs the following permissions on the target repositories:
- contents: read & write
- metadata: read only (will automatically be selected on the GitHub settings page when selecting the contents permission above)
You can also use a [fine-grained personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) (beta). It needs the following permissions on the target repositories:
- `contents: read & write`
- `metadata: read only` (automatically selected when selecting the contents permission)
## Example