Add details about using a classic PAT

Let's include details in the readme to avoid error because of the following:

> Personal access tokens with fine grained access do not support the GraphQL API. 

> 'projectV2' field requires the scopes 'read:project'

> 'addProjectV2ItemById' field requires the scope 'project'
This commit is contained in:
Laurence "DC5B" Lord
2023-04-04 14:23:05 +01:00
parent 80dff83603
commit 9d30cd4ea3

View File

@@ -137,9 +137,11 @@ Using these events ensure that a given issue or pull request, in the workflow's
## Creating a PAT and adding it to your repository
- create a new [personal access
token](https://github.com/settings/tokens/new) with `repo` and `project` scopes
token](https://github.com/settings/tokens/new) with `project` scopes.
_See [Creating a personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) for more information_
> **NOTE:** Use a classic token with full control of projects. Personal access tokens with fine grained access do not support the GraphQL API. Only 'project' and 'read:project' scopes are required.
- add the newly created PAT as a repository secret, this secret will be referenced by the [github-token input](#github-token)
_See [Encrypted secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) for more information_