From 97ab2fc618b0ed7e05f6bb695b4d6fa760c9264d Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Thu, 29 Oct 2026 12:32:35 +0000 Subject: [PATCH 1/2] ci(release): Grant statuses write to the changelog preview Craft's reusable preview job requests contents read, pull-requests write and statuses write. A called workflow can't get more permissions than its caller, so without statuses write every run fails at startup. Co-Authored-By: Lorenzo Cian <17258265+lcian@users.noreply.github.com> --- .github/workflows/changelog-preview.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/changelog-preview.yml b/.github/workflows/changelog-preview.yml index 314173ae..1b37471e 100644 --- a/.github/workflows/changelog-preview.yml +++ b/.github/workflows/changelog-preview.yml @@ -4,9 +4,13 @@ on: pull_request_target: types: [opened, synchronize, reopened, edited, labeled, unlabeled] +# A called workflow can't get more permissions than its caller, and Craft's +# preview job requests all three, so dropping any of them fails the run at +# startup. permissions: contents: read pull-requests: write + statuses: write jobs: changelog-preview: From d804fe7319191e0c3c81f26eb43b8620a9b95621 Mon Sep 17 00:00:00 2001 From: Lorenzo Cian <17258265+lcian@users.noreply.github.com> Date: Thu, 29 Oct 2026 13:35:00 +0100 Subject: [PATCH 2/2] Apply suggestion from @lcian --- .github/workflows/changelog-preview.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/changelog-preview.yml b/.github/workflows/changelog-preview.yml index 1b37471e..b8043cac 100644 --- a/.github/workflows/changelog-preview.yml +++ b/.github/workflows/changelog-preview.yml @@ -4,9 +4,6 @@ on: pull_request_target: types: [opened, synchronize, reopened, edited, labeled, unlabeled] -# A called workflow can't get more permissions than its caller, and Craft's -# preview job requests all three, so dropping any of them fails the run at -# startup. permissions: contents: read pull-requests: write