Skip to content
Discussion options

You must be logged in to vote

The issue is that fine-grained PATs require explicit repository-level access in addition to the right permissions.

The markFileAsViewed mutation needs pull_requests: write permission (which you already have), but the PAT must also be installed on the specific repository containing the PR.

Two things to check:

  1. Repository access: When creating the fine-grained PAT, did you select "All repositories" or only "Only select repositories"? If the repo containing the PR isn't explicitly selected, you will get this error. Go to https://github.com/settings/tokens and check the PAT's repository access.

  2. Organization restrictions: If the repository belongs to an organization that has blocked fine-g…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@suveshmoza
Comment options

Answer selected by suveshmoza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended Apps API and Webhooks Discussions related to GitHub's APIs or Webhooks Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community! source:ui Discussions created via Community GitHub templates API Discussions around GitHub API platform and docs
2 participants