Commit f5b7135
chore: use publish to bcr reusable workflow for bcr mirroring (#3775)
Migrate rules_rust off of the deprecated Publish to BCR GitHub app to
the newer reusable workflow. The reusable workflow has a number of
benefits over the app:
* It supports build attestations which can be enabled at a later time.
* Gives finer grain control over running the publish process—if it
fails, you can manually re-run the workflow.
* It's more secure—you control the PAT rather than giving the app write
permissions.
Some actions that maintainer for this ruleset will need to take:
* [x] Add a classic PAT named `BCR_PUBLISH_TOKEN` for the repository or
org (see
[steps](https://github.com/bazel-contrib/publish-to-bcr?tab=readme-ov-file#setup)).
I recommend creating a "machine" user for bazelbuild and generating a
classic PAT for that user rather than using an individual's PAT. For
example, in bazel-contrib we use the
[bazel-contrib-bot](https://github.com/bazel-contrib-bot) user to do
publishes.
* [ ] Uninstall the GitHub app for this repo.
* [ ] Test a publish after landing, or wait for the next release. I'll
be available to help debug any issues that come up if the workflow
fails.
---------
Co-authored-by: UebelAndre <github@uebelandre.com>1 parent e4a4fb6 commit f5b7135
3 files changed
+51
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | 1 | | |
5 | 2 | | |
6 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
0 commit comments