Skip to content

Commit

Permalink
Change PR to be pull-request-target
Browse files Browse the repository at this point in the history
This allows a PR to be able to run in the context of a base run and
therefore allows it to get access to the secrets

https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#pull_request_target
  • Loading branch information
stack72 committed Nov 30, 2020
1 parent 7414563 commit d3686cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: New Pull request Open
"on":
pull_request:
branches:
- master
pull_request_target:
types: [opened, edited]

jobs:
comment-on-pr:
Expand Down

0 comments on commit d3686cd

Please sign in to comment.