With pull_request trigger, we can't attach write permissions to GitHub Actions for the pull requests from a forked repository. This pull request proposes to use pull_request_target trigger instead, so it'll always refer the workflow in the default branch (instead of HEAD), with ability to give write permissions.
With pull_request trigger, we can't attach write permissions to GitHub Actions for the pull requests from a forked repository. This pull request proposes to use pull_request_target trigger instead, so it'll always refer the workflow in the default branch (instead of HEAD), with ability to give write permissions.