Skip to content

Commit 42cb8b1

Browse files
Try using pull_target_request for preview generation (#3126)
1 parent 8721146 commit 42cb8b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/preview-info.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: Show preview on PRs
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened]
66

77
env:
8-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
99
CURRENT_BRANCH: ${{ github.event.pull_request.head.ref }}
1010

1111
jobs:

0 commit comments

Comments
 (0)