From 78986c3f6c87dd04136b1ecd9e2c3d2366da9979 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 17 Oct 2024 12:59:37 +1100 Subject: [PATCH] [8.15] github-actions: pull_request in forked PRs cannot change permissions scope (#196550) (#196622) # Backport This will backport the following commits from `main` to `8.15`: - [github-actions: pull_request in forked PRs cannot change permissions scope (#196550)](https://github.com/elastic/kibana/pull/196550) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Victor Martinez --- .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 1052736e1320b..5ab57b5461de0 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: