Skip to content

Github authentication for raw.githubusercontent.com fails #79

@pjjw

Description

@pjjw

Describe the bug
When asked for credentials for URLs with the host raw.githubusercontent.com, the credential helper passes authorization headers in the wrong format, and they are rejected.

To Reproduce
Add a fetch for any file in a private repo by using its 'raw' link, e.g. https://raw.githubusercontent.com/{org-name}/{repo-name}/{branch-or-sha}/file.txt

Expected behavior
Bazel should be able to complete the fetch, but instead it gives a 404

Environment

  • OS name + version: MacOS 26, various linux distros
  • Version of the code: 0.0.9

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