Skip to content

Commit 432ac21

Browse files
committed
.github/workflows/release: grant release-bazel permissions
Trying to fix: The workflow is not valid. .github/workflows/release.yml (Line: 46, Col: 26): Invalid secret, BCR_PUBLISH_TOKEN is not defined in the referenced workflow. .github/workflows/release.yml (Line: 40, Col: 3): Error calling workflow 'google/re2/.github/workflows/release-bazel.yml@932b308'. The nested job 'release' is requesting 'attestations: write, contents: write, id-token: write', but is only allowed 'attestations: none, contents: read, id-token: none'. I made the secret repo-wide instead of being scoped to the bcr-push environment. Not 100% sure that will fix that error. The changes in this CL should fix the second error. Change-Id: I7d1a537dd3d464fe0d99e612ae843a14243d24af Reviewed-on: https://code-review.googlesource.com/c/re2/+/63950 Reviewed-by: Jeremy Kun <[email protected]> Reviewed-by: Russ Cox <[email protected]>
1 parent 932b308 commit 432ac21

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,9 @@ jobs:
4242
uses: ./.github/workflows/release-bazel.yml
4343
with:
4444
tag_name: ${{ github.ref_name }}
45+
permissions:
46+
contents: write
47+
id-token: write
48+
attestations: write
4549
secrets:
4650
BCR_PUBLISH_TOKEN: ${{ secrets.BCR_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)