mirror of
https://github.com/actions/add-to-project.git
synced 2025-12-11 04:32:47 +00:00
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:
@@ -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_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user