mirror of
https://github.com/peter-evans/repository-dispatch.git
synced 2026-06-11 11:21:25 +00:00
docs: add link to fine-grained pat
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user