Skip to content

Commit 591c036

Browse files
sashashuraJAremko
authored andcommitted
build: harden rebase.yml permissions
Signed-off-by: Alex <[email protected]>
1 parent 58c56f8 commit 591c036

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/rebase.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ name: Automatic Rebase
22
on:
33
issue_comment:
44
types: [created]
5+
permissions: {}
56
jobs:
67
rebase:
8+
permissions:
9+
contents: write # to push code to rebase (cirrus-actions/rebase)
10+
pull-requests: read # to get info about PR (cirrus-actions/rebase)
11+
712
name: Rebase
813
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
914
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)