Skip to content

Commit ea2e524

Browse files
authored
Improve sandboxing of pull_request_target workflow
This restricts the action to be no longer able to push content, so it can only comment on PRs or open and close (not merge) them. This means that even if someone manages to bypass the sandboxing somehow, they can not really exploit this workflow to extract secrets etc.
1 parent 8d4bd69 commit ea2e524

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
branches:
1010
- master
1111

12+
permissions:
13+
pull-requests: write
14+
contents: read
15+
1216
jobs:
1317
check:
1418
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)