From fe19d64744c2ef608df471e3b85af561d6af5143 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 17 Oct 2024 03:33:19 +0200 Subject: [PATCH] github-actions: pull_request in forked PRs cannot change permissions scope (#196550) (cherry picked from commit 4b09db32f4da6e02068c7888d1888242129eec88) --- .github/workflows/oblt-github-commands.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/oblt-github-commands.yml b/.github/workflows/oblt-github-commands.yml index 48df40f3343d9..1b475334bd80f 100644 --- a/.github/workflows/oblt-github-commands.yml +++ b/.github/workflows/oblt-github-commands.yml @@ -8,19 +8,20 @@ name: oblt-github-commands on: - pull_request: + pull_request_target: types: - labeled permissions: contents: read - issues: write - pull-requests: write jobs: comment: if: ${{ github.event.label.name == 'ci:project-deploy-observability' }} runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 with: