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
This commit is contained in:
Félix Malfait
2026-03-02 11:25:14 +01:00
parent 0223975bbd
commit 2a5b2746c9
+1 -2
View File
@@ -1,8 +1,7 @@
name: 'Preview Environment Dispatch'
permissions:
contents: read
actions: write
contents: write
on:
pull_request_target: