Skip to content

Commit 90482d2

Browse files
yedayakscop
authored andcommitted
ci: Add permissions necessary for release-please
Without this it fails with this error: ``` Error: release-please failed: Resource not accessible by integration ``` The `issues: write` permissions are needed to create labels on PRs, because of this issue: https://github.com/orgs/community/discussions/156181 Followup to #1432
1 parent 8a8e4a8 commit 90482d2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ jobs:
4343
distcheck:
4444
runs-on: ubuntu-latest
4545
permissions:
46-
contents: write # TODO: This is needed for release, maybe split the release steps to a different job?
46+
# Permissions from https://github.com/googleapis/release-please-action?tab=readme-ov-file#basic-configuration
47+
# TODO: This is only needed for release, maybe split the release steps to a different job?
48+
contents: write
49+
pull-requests: write
50+
# Needed for adding labels for PRs, we shouldn't actually need this, see https://github.com/orgs/community/discussions/156181
51+
issues: write
4752
strategy:
4853
matrix:
4954
include:

0 commit comments

Comments
 (0)