From 87e711adb6f119296484afdb06d98b521ffb2a25 Mon Sep 17 00:00:00 2001 From: Artem Zakharchenko Date: Sun, 27 Oct 2024 13:20:25 +0100 Subject: [PATCH] chore: add permission check for the reviewer --- .github/workflows/release-preview.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-preview.yml b/.github/workflows/release-preview.yml index 586fffe53..16aa9e5c5 100644 --- a/.github/workflows/release-preview.yml +++ b/.github/workflows/release-preview.yml @@ -8,7 +8,8 @@ on: jobs: preview: # Publish previews only for approved pull requests. - if: github.event.review.state == 'APPROVED' + # The reviewer must have push persmissions to trigger this job. + if: github.event.review.state == 'approved' && github.event.review.user.permissions.push == true runs-on: macos-latest steps: - name: Checkout