From e338e50f61fdeea01fe877a7873e492b5a01fef8 Mon Sep 17 00:00:00 2001 From: Yedaya Katsman Date: Thu, 9 Oct 2025 12:24:34 +0300 Subject: [PATCH] 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 https://github.com/scop/bash-completion/pull/1432 --- .github/workflows/ci.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a4c359d64be..3d5b32cf528 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -43,7 +43,12 @@ jobs: distcheck: runs-on: ubuntu-latest permissions: - contents: write # TODO: This is needed for release, maybe split the release steps to a different job? + # Permissions from https://github.com/googleapis/release-please-action?tab=readme-ov-file#basic-configuration + # TODO: This is only needed for release, maybe split the release steps to a different job? + contents: write + pull-requests: write + # Needed for adding labels for PRs, we shouldn't actually need this, see https://github.com/orgs/community/discussions/156181 + issues: write strategy: matrix: include: