Skip to content

Fix resource not accessible by personal access token error #124

Description

@jcandan

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,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions