Skip to content

Commit 56d1464

Browse files
authored
Update welcome-new-users.yml
Add a comment regarding the permissions top-level trick Signed-off-by: Yacine Kheddache <yacine@microcks.io>
1 parent b6486a1 commit 56d1464

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 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:

0 commit comments

Comments
 (0)