From e55ff5ac4a978e7b2512e506cc54b1336191bacd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Malfait?= Date: Wed, 30 Apr 2025 13:06:57 +0200 Subject: [PATCH] Change workflow dispatch permissions (#11812) It seems that content: write is needed so that external contributors can dispatch workflows --- .github/workflows/preview-env-dispatch.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview-env-dispatch.yaml b/.github/workflows/preview-env-dispatch.yaml index 0316729e8..c6c6ac474 100644 --- a/.github/workflows/preview-env-dispatch.yaml +++ b/.github/workflows/preview-env-dispatch.yaml @@ -12,8 +12,9 @@ concurrency: cancel-in-progress: true permissions: - contents: read + contents: write actions: write + pull-requests: read jobs: changed-files-check: @@ -39,4 +40,4 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} repository: ${{ github.repository }} event-type: preview-environment - client-payload: '{"pr_number": "${{ github.event.pull_request.number }}", "pr_head_sha": "${{ github.event.pull_request.head.sha }}", "repo_full_name": "${{ github.repository }}"}' \ No newline at end of file + client-payload: '{"pr_number": "${{ github.event.pull_request.number }}", "pr_head_sha": "${{ github.event.pull_request.head.sha }}", "repo_full_name": "${{ github.repository }}"}'