ci/docs-preview: use pull_request_target

Run code with access to the tokens on the target branch, *after* approval.
This commit is contained in:
raf 2025-01-19 13:09:47 +03:00
parent 779af80bf2
commit abd9176a2a
No known key found for this signature in database
GPG key ID: EED98D11B85A2819

View file

@ -2,7 +2,7 @@ name: Build and Preview Manual
on:
workflow_dispatch:
pull_request:
pull_request_target:
types: [opened, synchronize, reopened, closed]
paths:
- ".github/workflows/docs-preview.yml"