Skip to content

repo-header-info Stargazers link returns 404 due to GitHub access restrictions #9964

Closed

Description

@kerollosy

Description

GitHub recently announced (June 30, 2026) that they are restricting access to the /stargazers/ UI views and API endpoints, making them private to repository admins and collaborators only. You can read the official changelog here: https://github.blog/changelog/2026-06-30-upcoming-access-restrictions-to-public-api-endpoints-and-ui-views/

This change breaks a Refined GitHub feature. Currently, the extension makes the repository star count clickable, directing users to the stargazers page. Because the GitHub restriction is already active, clicking this link now results in a 404 page for any public user who isn't a repo admin or collaborator.

See the feature in question here:

Image

I would love to take care of this and submit a PR to fix it. Please assign this issue to me!

How to replicate the issue + URL

  1. Ensure you are not logged in as a collaborator/admin for the target repository.
  2. Go to any public repository, such as: https://github.com/refined-github/refined-github
  3. Click on the star count indicator in the repository header (the link added by Refined GitHub).
  4. You will be redirected to the stargazers page (e.g., https://github.com/refined-github/refined-github/stargazers) and encounter a 404 error.

Extension version

26.8.8

Browser(s) used

Chrome

Token ⚠️

  • I set a token in the options page. I understand that some features require a token to work.

Activity

  1. fregante commented on Aug 10, 2026

    @fregante
    Member

    Thank you for the detailed issue! Yes PR welcome. I think that you can obtain this information via the existing GraphQL query, e.g. via "viewerCanAdmin" field or something like that.

  2. kerollosy commented on Aug 10, 2026

    @kerollosy
    ContributorAuthor

    @fregante Thanks! Since GitHub restricts access to both "admins and collaborators", checking viewerCanAdminister will be too restrictive because it only returns true for ADMINs.

    I'll use the viewerPermission field instead to check if the user has ADMIN, MAINTAIN, WRITE, or TRIAGE access. GitHub's changelog is slightly vague on the exact permission cut-off, but this safely covers actual collaborators while excluding READ (which everyone has on public repos). https://docs.github.com/en/rest/activity/starring?apiVersion=2026-03-10#list-stargazers

    I'll get a PR open shortly!

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions