Skip to content

Pull request viewer does not load images from private repositories #6600

Description

@artieeg

Problem

Images embedded in pull request descriptions from private repositories render as broken images in the pull request viewer. GitHub returns private user-attachments URLs as 404 when the desktop renderer fetches them anonymously, even though the signed-in GitHub CLI can access them.

Reproduction

  1. Open a pull request from a private GitHub repository that contains uploaded images.
  2. Open its Summary tab in the pull request viewer.
  3. Scroll to the images in the description.

The image alt text and broken-image icon appear instead of the uploaded images.

Before

The screenshot uses public PR #6594 as seeded content with an unreferenced private test attachment substituted at render time. It contains no private pull request content.

Pull request images fail to load

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