Skip to content

Commit a179735

Browse files
authored
GitHub Workflows security hardening (#3884)
Signed-off-by: sashashura <[email protected]>
1 parent 60b9565 commit a179735

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/bad-pr.yml

+5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ on:
44
pull_request_target:
55
types: [opened, reopened]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
close-pr:
12+
permissions:
13+
pull-requests: write
914
runs-on: ubuntu-latest
1015
if: "contains(github.event.pull_request.body, 'by deleting this comment block') || github.event.pull_request.body == ''"
1116
steps:

0 commit comments

Comments
 (0)