Skip to content

Commit b463b74

Browse files
committed
ci: update WELCOME-NEW-USERS workflow from global .github repo
Signed-off-by: microcks-bot <info@microcks.io>
1 parent dcc5467 commit b463b74

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/welcome-new-users.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ name: Welcome New Users with Thanks and Tip non-stargazers ;-)
88
on:
99
issues:
1010
types: [opened]
11-
pull_request:
11+
pull_request_target:
1212
types: [opened, closed]
1313

1414
# Explicitly disable all default GITHUB_TOKEN permissions at the workflow level.
1515
# Each job then declares only the minimal required permissions (principle of least privilege),
16-
# e.g., `issues: write` for posting comments. This improves security, especially for PRs from forks.
16+
# e.g., `issues: write` for posting comments. This improves security.
1717
permissions: {}
1818

1919
jobs:
@@ -46,7 +46,7 @@ jobs:
4646
🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.
4747
4848
welcome-pr-opened:
49-
if: github.event_name == 'pull_request' && github.event.action == 'opened'
49+
if: github.event_name == 'pull_request_target' && github.event.action == 'opened'
5050
runs-on: ubuntu-latest
5151
permissions:
5252
issues: write
@@ -61,10 +61,10 @@ jobs:
6161
6262
Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly.
6363
64-
Hope you have a great time there!
64+
Hope you have a great time there!
6565
6666
welcome-pr-merged:
67-
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
67+
if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true
6868
runs-on: ubuntu-latest
6969
permissions:
7070
issues: write

0 commit comments

Comments
 (0)