Skip to content

Conversation

@fmeum
Copy link
Contributor

@fmeum fmeum commented Jun 30, 2025

This still requires a PAT to be added as BCR_PUBLISH_TOKEN.

This still requires a PAT to be added as BCR_PUBLISH_TOKEN.
@fmeum
Copy link
Contributor Author

fmeum commented Jun 30, 2025

@meteorcloudy No guarantee that this actually works as there is no way for me to try it out :-)

@alexeagle Did I miss anything?

Copy link
Member

@meteorcloudy meteorcloudy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

with:
tag_name: ${{ inputs.tag_name }}
# GitHub repository which is a fork of the upstream where the Pull Request will be opened.
registry_fork: bazel-contrib/bazel-central-registry
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, does this mean I actually need a token that has access to this fork? I will probably use the bazel-io account, so maybe this should be bazel-io/bazel-central-registry?

/cc @alexeagle @kormide

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes the token has to be able to push to a fork that the PR may originate from

Copy link
Member

@meteorcloudy meteorcloudy Jun 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexeagle Thanks! Can you also take a quick look at the rest of the PR?

@meteorcloudy
Copy link
Member

I've setup BCR_PUBLISH_TOKEN using the bazel-io account for bazelbuild org, if this is successful, we can apply the same release process to rules_java, rules_cc, etc..

Copy link
Member

@meteorcloudy meteorcloudy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for helping with this! I'll merge and test the release!

@meteorcloudy meteorcloudy merged commit e472b4e into bazelbuild:main Jul 1, 2025
2 checks passed
@fmeum fmeum deleted the bcr-publish branch July 1, 2025 10:23
@meteorcloudy
Copy link
Member

@alexeagle @kormide Looks like attest step failed at
https://github.com/bazelbuild/bazel-skylib/actions/runs/16001058741/job/45136419464

There is no clear error message, can you take a look what went wrong?

@meteorcloudy
Copy link
Member

Hmm looks like it's

Warning: No files were found with the provided path: bazel-skylib-*.tar.gz. No artifacts will be uploaded.

@meteorcloudy
Copy link
Member

FYI, bazelbuild rules owners:

rules_cc: @pzembrod
rules_java: @hvadehra
rules_android: @ahumesky @ted-xie
rules_apple: @keith
rules_rust: @UebelAndre

In case you also want to adopt the new reusable workflows for publishing to BCR with attestations, you can see this PR as an example, the BCR_PUBLISH_TOKEN has been set at the org level, so other repos can already use it.

Context:

@ted-xie
Copy link

ted-xie commented Jul 2, 2025

This is great. Thanks, @fmeum and @meteorcloudy!

copybara-service bot pushed a commit to bazelbuild/rules_cc that referenced this pull request Jul 15, 2025
Copybara Import from #441

BEGIN_PUBLIC
Support publish-to-bcr workflow with attestations (#441)

Similar to bazelbuild/bazel-skylib#581

Closes #441
END_PUBLIC

COPYBARA_INTEGRATE_REVIEW=#441 from meteorcloudy:release d399c29
PiperOrigin-RevId: 783256391
Change-Id: I4ccd53589076c948d34558c307d0213f5110bf2c
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.

5 participants