Skip to content

Commit db416fa

Browse files
committed
fix(ci): use pull_request_target for PR actions (#2065)
For the actions that create a PR, use the `pull_request_target` event so that they can run with write permissions when triggered by pull requests that originate from a fork.
1 parent f3ad4e7 commit db416fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/create-cut-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Create cut PR
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types:
66
- closed
77
branches:

.github/workflows/create-release-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Create release PR
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types:
66
- closed
77
branches:

0 commit comments

Comments
 (0)