Skip to content

Commit

Permalink
CI: Give actions write permission to page contents
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aperezdc committed Feb 24, 2023
1 parent 3a7f18c commit c826e31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: build-pr

on:
pull_request:
pull_request_target:
branches:
- master

Expand Down

0 comments on commit c826e31

Please sign in to comment.