github-csv-tools icon indicating copy to clipboard operation
github-csv-tools copied to clipboard

Fix resource not accessible by personal access token error

Open jcandan opened this issue 2 weeks ago • 1 comments

Problem

The current token documentation...

Tokens

For all actions, the tool will ask you to input a GitHub token. To obtain this token:

  1. Go to https://github.com/settings/tokens
  2. Click "Generate New Token"
  3. Check on repo
  4. 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).

Image

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,

jcandan avatar Dec 09 '25 00:12 jcandan

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!

jcandan avatar Dec 09 '25 00:12 jcandan