Skip to content

Commit

Permalink
fix: Example pull_request_target: is wrong and very badly broken
Browse files Browse the repository at this point in the history
see www-learn-study/saraswati.learn.study#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.
  • Loading branch information
vorburger committed Nov 2, 2023
1 parent ffdca2d commit 3704427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dependents/source_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
branches:
- 'main'
delete:
pull_request_target:
pull_request:
types:
- opened
- synchronize
Expand Down

0 comments on commit 3704427

Please sign in to comment.