Skip to content

$GITHUB_TOKEN should be consumed for ADD https://raw.githubusercontent.com/... and ADD https://github.com/... #5978

@AkihiroSuda

Description

@AkihiroSuda

Description

GitHub recently introduced the API rate limit to non-REST requests too

https://github.blog/changelog/2025-05-08-updated-rate-limits-for-unauthenticated-requests/

These changes will apply to operations like cloning repositories over HTTPS, anonymously interacting with our REST APIs, and downloading files from raw.githubusercontent.com.

source/http and source/git should be able to fetch the $GITHUB_TOKEN secret from the client so as to relax the rate limit.

Probably the existing secret API can be reused.
However, if we want to let buildx to automatically expose the token, probably it needs a new API that can be only accessed from SourceOp, not from ExecOp, to reduce security concerns.
(So, probably buildx shouldn't expose the token by default?)

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    New

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions