From 504d5c2502671898a397ef5c1280dbd6b38545ba Mon Sep 17 00:00:00 2001 From: Baptiste Grenier Date: Thu, 9 Jan 2025 10:29:55 +0100 Subject: [PATCH] Add required permissisons to deploy previews The actions should only be triggered when a label is set, and only selected users can set labels --- .github/workflows/deploy_pr_preview.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy_pr_preview.yml b/.github/workflows/deploy_pr_preview.yml index 547b214ad2..cf52f6fd24 100644 --- a/.github/workflows/deploy_pr_preview.yml +++ b/.github/workflows/deploy_pr_preview.yml @@ -13,7 +13,9 @@ on: workflows: ["Build pull request preview"] types: [completed] -permissions: read-all +permissions: + contents: write + pull-requests: write jobs: deploy_pr_preview: