Skip to content

Conversation

Copy link

Copilot AI commented Dec 6, 2025

Enables automatic publishing to the Bazel Central Registry when version tags are pushed, making the module available for consumption via bzlmod.

Changes

  • .bcr/ directory: BCR template files

    • metadata.template.json: Repository metadata and maintainers
    • source.template.json: GitHub auto-generated archive URLs (archive/refs/tags/v{VERSION}.tar.gz)
    • presubmit.yml: Build verification matrix across Debian, Ubuntu, macOS on Bazel 7.x/8.x/9.*
    • README.md: Maintainer setup guide (BCR fork, PAT creation, secret configuration)
  • .github/workflows/publish-to-bcr.yml: GitHub Actions workflow

    • Triggers on v*.*.* tags
    • Uses bazel-contrib/[email protected] reusable workflow
    • Requires BCR_PUBLISH_TOKEN secret

Target registry: https://github.com/bazelbuild/bazel-central-registry

Setup Required

Maintainers must:

  1. Fork bazelbuild/bazel-central-registry
  2. Create classic PAT with repo and workflow scopes
  3. Add as BCR_PUBLISH_TOKEN repository secret

See .bcr/README.md for detailed instructions.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/mmorel-35/proxy-wasm-rust-sdk/contents/.bcr
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)
  • https://api.github.com/repos/mmorel-35/proxy-wasm-rust-sdk/git/trees/92d566026a6778667b88188b81ff5a24c658a9cf
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)
  • https://api.github.com/users/PiotrSikora
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)
  • releases.bazel.build
    • Triggering command: /usr/local/lib/node_modules/@bazel/bazelisk/bazelisk-linux_amd64 /usr/local/lib/node_modules/@bazel/bazelisk/bazelisk-linux_amd64 query //... (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Please provide BCR config and workflow as in mmorel-35/proxy-wasm-rust-sdk@92d5660 for https://github.com/proxy-wasm/proxy-wasm-cpp-host , the targeted registry has to be https://github.com/bazelbuild/bazel-central-registry . Provide README in '.bcr' to help project maintainer to follow right process. See https://github.com/bazel-contrib/publish-to-bcr/ for reference


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add BCR config and workflow for proxy-wasm-cpp-host Add BCR publishing configuration for Bazel Central Registry Dec 6, 2025
Copilot AI requested a review from mmorel-35 December 6, 2025 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants