> ## Content Index
> Fetch the complete content index at: https://horrell.ca/llms.txt
> Use this file to discover other available public pages before exploring further.

# Using GitHub mirrors with Bazel
- URL: https://horrell.ca/2025/12/26/using-github-mirrors-with-bazel/
- Published: 2025-12-26T19:08:00.000Z
- Updated: 2026-10-03T16:44:35.000Z
- Author: Christopher Horrell

If you use Bazel for builds, the [https://releases.bazel.build](https://releases.bazel.build/?ref=horrell.ca) and [https://bcr.bazel.build](https://bcr.bazel.build/?ref=horrell.ca) certs expired today...and have not yet been renewed (see [https://github.com/bazelbuild/bazel/issues/28101](https://github.com/bazelbuild/bazel/issues/28101?ref=horrell.ca)). Any builds with Bazel will break because of this. I discovered this myself while working on something and `bazel build ...` started throwing a cert error.

For a quick workaround, use the Bazel GitHub repositories as a mirrors for releases.bazel.build and bcr.bazel.build.

In `.bazeliskrc` , put this:

```
# Mirror for releases.bazel.build
BAZELISK_BASE_URL=https://github.com/bazelbuild/bazel/releases/download
```

And in `.bazelrc`, put this:

```
# Mirror for bcr.bazel.build 
common --registry=https://raw.githubusercontent.com/bazelbuild/bazel-central-registry/main/

```