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:
@@ -1,8 +1,7 @@
|
||||
name: 'Preview Environment Dispatch'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
actions: write
|
||||
contents: write
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
|
||||
Reference in New Issue
Block a user