Skip to content

Commit

Permalink
ci: modify permissions on workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kylesomers committed Sep 30, 2024
1 parent c4df52c commit 8820f56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pr-rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ name: Automatic Rebase
on:
issue_comment:
types: [created]
permissions:
contents: read
jobs:
rebase:
name: Rebase
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
if: github.event.issue.pull_request != '' && (contains(github.event.comment.body, '/rebase') || contains(github.event.comment.body, '/autosquash')) && github.event.comment.author_association == 'MEMBER'
steps:
- name: Checkout the latest code
Expand Down

0 comments on commit 8820f56

Please sign in to comment.