Skip to content

Commit 2aa5163

Browse files
committed
ci: Use pull_request_target to trigger gh-ph
[1] Frederick888/gh-ph@17b4944 Signed-off-by: Frederick Zhang <frederick888@tsundere.moe>
1 parent 3de6e19 commit 2aa5163

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/gh-ph.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Pull request history
22

33
on:
4-
pull_request:
4+
pull_request_target:
55

66
permissions:
77
contents: read
@@ -10,7 +10,6 @@ permissions:
1010
jobs:
1111
gh-ph:
1212
name: Add commit history to pull request description
13-
if: github.event.pull_request.head.repo.full_name == github.repository
1413
runs-on: ubuntu-latest
1514
steps:
1615
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)