From abd9176a2ad6eaa0ad6fff3ae2cee9c7c5f8dd0e Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sun, 19 Jan 2025 13:09:47 +0300 Subject: [PATCH] ci/docs-preview: use `pull_request_target` Run code with access to the tokens on the target branch, *after* approval. --- .github/workflows/docs-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index c38be9da..e6d2e662 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -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"