Skip to content

Commit

Permalink
Update Artikodin pull request trigger to pull_request_target (#5)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
XaF committed Jan 12, 2024
1 parent b8fe73e commit 7a61520
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/artikodin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ name: Artikodin pull-request handler


on:
# Runs on a pull request for the main branch
pull_request:
# Runs on a pull request for the main branch (we use
# 'pull_request_target' instead of 'pull_request' so
# it also works for forks, since the secrets would
# otherwise not be available for forks.
pull_request_target:
types:
# Default events
- opened
Expand Down

0 comments on commit 7a61520

Please # to comment.