From 77b3fe98afac158501a5bac4ed8858aa8afc2496 Mon Sep 17 00:00:00 2001 From: microcks-bot Date: Wed, 25 Mar 2026 17:26:09 +0000 Subject: [PATCH] ci: update WELCOME-NEW-USERS workflow from global .github repo Signed-off-by: microcks-bot --- .github/workflows/welcome-new-users.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/welcome-new-users.yml b/.github/workflows/welcome-new-users.yml index a7a3ff0..d664a1b 100644 --- a/.github/workflows/welcome-new-users.yml +++ b/.github/workflows/welcome-new-users.yml @@ -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: @@ -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 @@ -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