Skip to content

Commit 44d134c

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

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
pull_request:
1212
types: [opened, closed]
1313

14+
# Explicitly disable all default GITHUB_TOKEN permissions at the workflow level.
15+
# 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.
1417
permissions: {}
1518

1619
jobs:
@@ -46,7 +49,7 @@ jobs:
4649
if: github.event_name == 'pull_request' && github.event.action == 'opened'
4750
runs-on: ubuntu-latest
4851
permissions:
49-
pull-requests: write
52+
issues: write
5053
steps:
5154
- uses: wow-actions/welcome@68019c2c271561f63162fea75bb7707ef8a02c85 # To pin v1.3.1
5255
with:
@@ -64,7 +67,7 @@ jobs:
6467
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
6568
runs-on: ubuntu-latest
6669
permissions:
67-
pull-requests: write
70+
issues: write
6871
steps:
6972
- uses: wow-actions/welcome@68019c2c271561f63162fea75bb7707ef8a02c85 # To pin v1.3.1
7073
with:

0 commit comments

Comments
 (0)