From 408c37d97d1601fb4902d06c4baae6b99a2500b1 Mon Sep 17 00:00:00 2001 From: Zachary Belford Date: Thu, 27 Apr 2023 10:22:54 -0700 Subject: [PATCH] add permission for delete preview (#740) --- .github/workflows/delete-preview.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/delete-preview.yml b/.github/workflows/delete-preview.yml index dfd8563e9ed..5c1db6ad57c 100644 --- a/.github/workflows/delete-preview.yml +++ b/.github/workflows/delete-preview.yml @@ -22,6 +22,8 @@ jobs: delete_branch_folder_job: runs-on: ubuntu-latest needs: is-fork-pull-request + permissions: + contents: write if: ${{ needs.is-fork-pull-request.outputs.IS_FORK == 'false' && github.event.pull_request.head.ref != 'wallet' && github.event.pull_request.head.ref != 'snaps' && github.event.pull_request.head.ref != 'guide' && github.event.pull_request.head.ref != 'assets' && github.event.pull_request.head.ref != 'img' && github.event.pull_request.head.ref != 'search' }} steps: - name: Checkout Repository