From c016249d94e7987d942c28c0dc56df467e9ad35d Mon Sep 17 00:00:00 2001 From: tlcdv Date: Sat, 30 May 2026 15:25:05 +0200 Subject: [PATCH] ci: grant branch-protection-info workflow issues/PR write permission --- .github/workflows/branch-protection-info.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/branch-protection-info.yml b/.github/workflows/branch-protection-info.yml index 21ff2c6a..e569c278 100644 --- a/.github/workflows/branch-protection-info.yml +++ b/.github/workflows/branch-protection-info.yml @@ -5,6 +5,11 @@ on: types: [opened, synchronize] workflow_dispatch: +permissions: + contents: read + issues: write + pull-requests: write + jobs: branch-protection-info: runs-on: ubuntu-latest @@ -46,7 +51,7 @@ jobs: ); if (!existingComment) { - github.rest.issues.createComment({ + await github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo,