Fix resource not accessible by personal access token error
Problem
The current token documentation...
Tokens
For all actions, the tool will ask you to input a GitHub token. To obtain this token:
- Go to https://github.com/settings/tokens
- Click "Generate New Token"
- Check on
repo- Copy/paste the token provided when the tool asks for it.
...may be outdated.
When going to set up a token, GitHub currently offers a new token generation tool, distinguishing one as (Classic).
This is probably the instructions set noted above.
The non-Classic generate tool offers more granular control over token permissions.
Proposed resolution
Provide updated instructions to acquire the correct permissions for the token.
Additional notes
Using the non-Classical generate tool, I experienced the following error:
RequestError [HttpError]: Resource not accessible by personal access token
at /usr/local/lib/node_modules/github-csv-tools/node_modules/@octokit/request/dist-node/index.js:122:21
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Job.doExecute (/usr/local/lib/node_modules/github-csv-tools/node_modules/bottleneck/light.js:405:18) {
status: 403,
Was able to use the Classic generate tool successfully.
Created 5 issues, and had 0 failures. ❤ ❗ If this project has provided you value, please ⭐ star the repo to show your support: ➡ https://github.com/gavinr/github-csv-tools
Hell yeah, you deserve a star! This is awesome!
Classic will likely be deprecated and removed in the future.
Thanks!