Skip to content

Commit

Permalink
build: harden rebase.yml permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Alex <aleksandrosansan@gmail.com>
  • Loading branch information
sashashura authored and JAremko committed Sep 26, 2022
1 parent 58c56f8 commit 591c036
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ name: Automatic Rebase
on:
issue_comment:
types: [created]
permissions: {}
jobs:
rebase:
permissions:
contents: write # to push code to rebase (cirrus-actions/rebase)
pull-requests: read # to get info about PR (cirrus-actions/rebase)

name: Rebase
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
runs-on: ubuntu-latest
Expand Down

0 comments on commit 591c036

Please sign in to comment.