diff --git a/.github/workflows/welcome-new-users.yml b/.github/workflows/welcome-new-users.yml index 08730e4..aadeb0c 100644 --- a/.github/workflows/welcome-new-users.yml +++ b/.github/workflows/welcome-new-users.yml @@ -8,7 +8,7 @@ name: Welcome New Users with Thanks and Tip non-stargazers ;-) on: issues: types: [opened] - pull_request: + pull_request_target: types: [opened, closed] # Explicitly disable all default GITHUB_TOKEN permissions at the workflow level. @@ -46,7 +46,7 @@ jobs: 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact. welcome-pr-opened: - if: github.event_name == 'pull_request' && github.event.action == 'opened' + if: github.event_name == 'pull_request_target' && github.event.action == 'opened' runs-on: ubuntu-latest permissions: pull-requests: write @@ -64,7 +64,7 @@ jobs: Hope you have a great time there! welcome-pr-merged: - if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true + if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true runs-on: ubuntu-latest permissions: pull-requests: write