Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/welcome-new-users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ 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.
# Each job then declares only the minimal required permissions (principle of least privilege),
# e.g., `issues: write` for posting comments. This improves security, especially for PRs from forks.
# e.g., `issues: write` for posting comments. This improves security.
permissions: {}

jobs:
Expand Down Expand Up @@ -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:
issues: write
Expand All @@ -61,10 +61,10 @@ jobs:

Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly.

Hope you have a great time there!
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:
issues: write
Expand Down
Loading