From c826e31976a76e1a263a5db712a483122de403c1 Mon Sep 17 00:00:00 2001 From: Adrian Perez de Castro Date: Sat, 25 Feb 2023 01:19:16 +0200 Subject: [PATCH] CI: Give actions write permission to page contents According to https://github.blog/2020-08-03-github-actions-improvements-for-fork-and-pull-request-workflows/ using pull_request_target will use the base branch instead of the fork branch. The base branch is considered trusted, and the automatic token handed over to GHA will include write permission. Fixes #154 --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index c2bb352f9..e308d52a4 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,7 +1,7 @@ name: build-pr on: - pull_request: + pull_request_target: branches: - master