File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 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.
1417permissions : {}
1518
1619jobs :
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 :
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 :
You can’t perform that action at this time.
0 commit comments