From 8326adf409c775c421a358c9701566a61909e93c Mon Sep 17 00:00:00 2001 From: wheeheee <104880306+wheeheee@users.noreply.github.com> Date: Mon, 18 Nov 2024 16:17:29 +0800 Subject: [PATCH] Grant contents write permissions to delete-preview workflow (#592) * contents write permissions * "3" --------- Co-authored-by: Martin Holters --- .github/workflows/TagBot.yml | 2 +- .github/workflows/delete-preview.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index 90dc1009d..4bad0ec93 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: inputs: lookback: - default: 3 + default: "3" permissions: actions: read checks: read diff --git a/.github/workflows/delete-preview.yml b/.github/workflows/delete-preview.yml index 76dbf0488..94ef07bf2 100644 --- a/.github/workflows/delete-preview.yml +++ b/.github/workflows/delete-preview.yml @@ -6,6 +6,8 @@ on: jobs: delete-preview: name: Delete preview deployment + permissions: + contents: write runs-on: ubuntu-latest steps: - uses: actions/checkout@v4