From f171a652f9e8eaac94920ac2a8471a7679a0dce4 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Mon, 16 Feb 2026 21:06:56 +0100 Subject: [PATCH] fix publish-to-bcr workflow Signed-off-by: Matthieu MOREL --- .github/workflows/publish-to-bcr.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-to-bcr.yml b/.github/workflows/publish-to-bcr.yml index e8e5371bc2..8b996dc534 100644 --- a/.github/workflows/publish-to-bcr.yml +++ b/.github/workflows/publish-to-bcr.yml @@ -4,6 +4,10 @@ on: # Allow manual triggering for testing and recovery workflow_dispatch: inputs: + registry_fork: + default: open-telemetry/bazel-central-registry + description: The Bazel registry fork to push to when opening up a pull request" + type: string tag_name: description: 'Tag name to publish (e.g., v1.24.0)' required: true @@ -16,9 +20,12 @@ jobs: publish: permissions: contents: write + id-token: write + attestations: write uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.1.0 with: tag_name: ${{ inputs.tag_name || github.event.release.tag_name }} - attest: false + registry_fork: ${{ inputs.registry_fork || 'open-telemetry/bazel-central-registry' }} + attest: true secrets: publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }}