From 2a5b2746c9bf1aac61e056bc072cbaf8bf9cc139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Malfait?= Date: Mon, 2 Mar 2026 11:25:14 +0100 Subject: [PATCH] Fix preview-env-dispatch: repository_dispatch requires contents:write The `repository_dispatch` API endpoint requires `contents: write` permission on the GITHUB_TOKEN, not `actions: write`. Our security hardening PR inadvertently changed this to `contents: read`, breaking the self-dispatch to the keepalive workflow. Made-with: Cursor --- .github/workflows/preview-env-dispatch.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/preview-env-dispatch.yaml b/.github/workflows/preview-env-dispatch.yaml index c049e98127..a190b1a4f9 100644 --- a/.github/workflows/preview-env-dispatch.yaml +++ b/.github/workflows/preview-env-dispatch.yaml @@ -1,8 +1,7 @@ name: 'Preview Environment Dispatch' permissions: - contents: read - actions: write + contents: write on: pull_request_target: