From 01c907df59251fe54684b53e7eeef9bc2ffa237a Mon Sep 17 00:00:00 2001 From: alifeee Date: Mon, 26 Aug 2024 17:01:34 +0100 Subject: [PATCH] add permissions to write to deployments --- .github/workflows/pull-request-preview-cleanup.yml | 4 ++++ .github/workflows/pull-request-preview.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/pull-request-preview-cleanup.yml b/.github/workflows/pull-request-preview-cleanup.yml index 8109145..d81a436 100644 --- a/.github/workflows/pull-request-preview-cleanup.yml +++ b/.github/workflows/pull-request-preview-cleanup.yml @@ -6,6 +6,10 @@ on: pull_request: types: [closed] +permissions: + contents: read + deployments: write + jobs: cleanup: runs-on: ubuntu-latest diff --git a/.github/workflows/pull-request-preview.yml b/.github/workflows/pull-request-preview.yml index 5ca332f..7d15248 100644 --- a/.github/workflows/pull-request-preview.yml +++ b/.github/workflows/pull-request-preview.yml @@ -24,6 +24,10 @@ on: pull_request: types: [opened, reopened, synchronize] +permissions: + contents: read + deployments: write + jobs: deploy: runs-on: ubuntu-latest