From 370442720282ad4bad4e2ec038a271742673eb3d Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Thu, 2 Nov 2023 06:02:23 +0100 Subject: [PATCH] fix: Example pull_request_target: is wrong and very badly broken see https://github.com/www-learn-study/saraswati.learn.study/pull/47 If you use pull_request_target: instead of pull_request: then the `actions/checkout`, at least in v4.1.1, will always check out the default branch, not the pull request. --- dependents/source_repo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dependents/source_repo.yml b/dependents/source_repo.yml index ca07295..de034be 100644 --- a/dependents/source_repo.yml +++ b/dependents/source_repo.yml @@ -11,7 +11,7 @@ on: branches: - 'main' delete: - pull_request_target: + pull_request: types: - opened - synchronize