Skip to content

Commit 7ff5faa

Browse files
authored
Change workflows trigger (#2595)
1 parent b619946 commit 7ff5faa

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/bump-version-on-merge-next.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
name: Bump version on merge
22

3+
# Caution:
4+
# the use of "pull_request_target" trigger allows to successfully
5+
# run workflow even when triggered from a fork. The trigger grants
6+
# access to repo's secrets and gives write permission to the runner.
7+
# This can be used to run malicious code on untrusted PR, so, please
8+
# DO NOT checkout any PR's ongoing commits (aka github.event.pull_request.head.sha)
9+
# while using this trigger.
310
on:
4-
pull_request:
11+
pull_request_target:
512
branches:
613
- next
714
types: [closed]

.github/workflows/create-a-release-draft.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
name: Create a release draft
22

3+
# Caution:
4+
# the use of "pull_request_target" trigger allows to successfully
5+
# run workflow even when triggered from a fork. The trigger grants
6+
# access to repo's secrets and gives write permission to the runner.
7+
# This can be used to run malicious code on untrusted PR, so, please
8+
# DO NOT checkout any PR's ongoing commits (aka github.event.pull_request.head.sha)
9+
# while using this trigger.
310
on:
4-
pull_request:
11+
pull_request_target:
512
branches:
613
- next
714
types: [closed]

0 commit comments

Comments
 (0)