From b31421d68fc5f227e1d1aa28b3f660ded0292d7a Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Fri, 10 Nov 2023 11:35:55 +0100 Subject: [PATCH] gh: Increase permissions for pr-update --- .github/workflows/pr-comment.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pr-comment.yaml b/.github/workflows/pr-comment.yaml index ff941e49d836..81280821727e 100644 --- a/.github/workflows/pr-comment.yaml +++ b/.github/workflows/pr-comment.yaml @@ -16,6 +16,8 @@ jobs: pr-number: runs-on: ubuntu-20.04 if: github.repository == 'erlang/otp' + permissions: + issues: read outputs: result: ${{ steps.pr-number.outputs.result }} steps: @@ -33,6 +35,8 @@ jobs: starting-tests: runs-on: ubuntu-latest needs: pr-number + permissions: + issues: write if: github.event.action == 'requested' && needs.pr-number.outputs.result != '' steps: - uses: actions/checkout@v4.1.1 @@ -49,6 +53,8 @@ jobs: needs: pr-number ## Limit concurrency so that only one job deploys to erlang.github.io concurrency: erlang.github.io-deploy + permissions: + issues: write if: >- github.event.action == 'completed' && needs.pr-number.outputs.result != '' &&