Skip to content

Commit 7a61520

Browse files
authored
Update Artikodin pull request trigger to pull_request_target (#5)
The `pull_request_target` trigger works in the context of the base branch, allowing to give access to secrets even in the context of forks, since this wouldn't run code from the pull request but code from the base branch. This change will allow this workflow to run with secrets even if a pull request is made from a fork.
1 parent b8fe73e commit 7a61520

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: .github/workflows/artikodin.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ name: Artikodin pull-request handler
22

33

44
on:
5-
# Runs on a pull request for the main branch
6-
pull_request:
5+
# Runs on a pull request for the main branch (we use
6+
# 'pull_request_target' instead of 'pull_request' so
7+
# it also works for forks, since the secrets would
8+
# otherwise not be available for forks.
9+
pull_request_target:
710
types:
811
# Default events
912
- opened

0 commit comments

Comments
 (0)