Skip to content

Github Actions Cache proxy #829

@prskr

Description

@prskr

Hey,

first of all: thank you for this great project!

I came across this repository while I was looking for a Bazel 'native' caching proxy to use GitHub Actions Cache as a Bazel remote cache.
I only found a GitHub Action that is setting up some proxy but bazel-remote is far more advanced than anything else I could find.

Unfortunately, you don't have (yet) GitHub Actions Cache as a proxy backend, so I implemented a PoC based on the new V2 API and I was curious whether you'd be interested in a contribution of a (proper) implementation.

The V2 API for the GitHub Actions Cache is based on twirp-rpc and I reverse engineered the protobuf spec (with a little help of Claude) from the generated TypeScript client in the official GitHub Actions SDK.

If you would be interested in this proxy implementation, there are some follow up questions, due to the fact that the API is protobuf based.
I'm fairly new to Bazel so I appreciated the opportunity to get to know the protobuf integration of Bazel but of course that breaks the go install setup way.
But, if you want to keep that in tact, I'd have to update my code to generate the client code in advance and disable the protobuf integration.
I'm absolutely fine to do so, i just wanted to get your opinion before going in this or that direction.

Thanks in advance,
Cheers

Peter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions