Skip to content

Commit db07bae

Browse files
authored
chore: fix new BCR release (#501)
* refactor: modifications needed to perform release * bump * bump * bump * bump * bump * bump * bump
1 parent db21ac7 commit db07bae

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# See https://github.com/bazel-contrib/publish-to-bcr
2+
name: Publish to BCR
3+
14
on:
25
# Run the publish workflow after a successful release
36
# Can be triggered from the release.yaml workflow
@@ -16,12 +19,14 @@ on:
1619

1720
jobs:
1821
publish:
19-
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@165f8b872b32a54bcc3c77156db4a74f54a51986 # 2025 March 14
22+
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v0.0.1 # 2025 March 15
2023
with:
2124
tag_name: ${{ inputs.tag_name }}
2225
# GitHub repository which is a fork of the upstream where the Pull Request will be opened.
2326
registry_fork: aspect-build/bazel-central-registry
2427
permissions:
28+
attestations: write
2529
contents: write
30+
id-token: write
2631
secrets:
2732
publish_token: ${{ secrets.PUBLISH_TOKEN }}

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,19 @@ on:
2222

2323
jobs:
2424
release:
25-
uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@540bb73a286db90d2f82d337d0adec21d3d54d7b # 2025-03-14
25+
uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v7.1 # 2025-03-17
2626
with:
2727
prerelease: false
2828
release_files: rules_lint-*.tar.gz
2929
tag_name: ${{ inputs.tag_name }}
3030
permissions:
3131
id-token: write # Needed to attest provenance
3232
attestations: write # Needed to attest provenance
33+
contents: write # Needed to create release
3334
publish:
34-
name: Publish to BCR
3535
needs: release
3636
uses: ./.github/workflows/publish.yaml
3737
with:
3838
tag_name: ${{ inputs.tag_name }}
39+
permissions:
40+
contents: write # allow appending new attestation files to the release

0 commit comments

Comments
 (0)