Skip to content

[Schema Inaccuracy] Fine-grained access tokens for "List check run annotations" lies about being able to use fine-grained tokens #7299

Description

@jsoref

Schema Inaccuracy

https://docs.github.com/en/rest/checks/runs?apiVersion=2026-03-10#list-check-run-annotations

The fine-grained token must have the following permission set:

"Checks" repository permissions (read)

Expected

Something saying "checks is not available for fine-grained permissions" plus an apology for lying for 2 years.

Reproduction Steps

curl -H "authorization: token $x" https://api.github.com/repos/:owner/:repo/check-runs/:run/annotations

{
  "message": "Resource not accessible by personal access token",
  "documentation_url": "https://docs.github.com/rest/checks/runs#list-check-run-annotations",
  "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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions