Since GitHub actions allows triggering workflows from forks there is a new event type “pull_request_target”. How is it now possible to fetch the actual origin master? Before we switch to the PRs from fork workflow (with pull_request_target) we just did this:
- name: Checkout PR uses: actions/checkout@v2 - name: Fetch origin/master run: | git fetch --no-tags --prune --depth=1 origin +refs/heads/master:refs/remotes/origin/master
I see why this doesn’t work anymore. Is there a new solution to this problem?